Start language servers based on buffers' languages
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
a66b81d60a
commit
8d3f42de52
12 changed files with 197 additions and 107 deletions
|
@ -6,7 +6,7 @@ mod tests;
|
|||
|
||||
pub use self::{
|
||||
highlight_map::{HighlightId, HighlightMap},
|
||||
language::{BracketPair, Language, LanguageConfig, LanguageRegistry},
|
||||
language::{BracketPair, Language, LanguageConfig, LanguageRegistry, LanguageServerConfig},
|
||||
};
|
||||
use anyhow::{anyhow, Result};
|
||||
pub use buffer::{Buffer as TextBuffer, Operation as _, *};
|
||||
|
@ -37,6 +37,9 @@ use std::{
|
|||
use tree_sitter::{InputEdit, Parser, QueryCursor, Tree};
|
||||
use util::{post_inc, TryFutureExt as _};
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub use tree_sitter_rust;
|
||||
|
||||
pub use lsp::DiagnosticSeverity;
|
||||
|
||||
thread_local! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue