pub struct LspConfig {
pub enabled: bool,
pub server_command: Option<String>,
pub args: Vec<String>,
}Expand description
Configuration for the LSP (Language Server Protocol) client.
By default LSP is disabled (enabled: false). To activate it:
- set
enabled: truein config.json, OR - rely on
LspClient::detect_server()auto-detection at runtime.
Fields§
§enabled: boolWhether the LSP integration is active. Default: false.
server_command: Option<String>Override the auto-detected server command. E.g. "rust-analyzer".
args: Vec<String>Extra arguments passed to the server binary. Default: empty.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LspConfig
impl<'de> Deserialize<'de> for LspConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LspConfig
impl RefUnwindSafe for LspConfig
impl Send for LspConfig
impl Sync for LspConfig
impl Unpin for LspConfig
impl UnsafeUnpin for LspConfig
impl UnwindSafe for LspConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more