pub struct LspConfigToml {
pub enabled: Option<bool>,
pub poll_after_edit_ms: Option<u64>,
pub max_diagnostics_per_file: Option<usize>,
pub include_warnings: Option<bool>,
pub servers: Option<BTreeMap<String, Vec<String>>>,
}Expand description
On-disk schema for the [lsp] table (#136). See config.example.toml
for documentation. All fields are optional so the TUI runtime can fall
back to its own defaults when keys are absent.
Fields§
§enabled: Option<bool>Master switch.
poll_after_edit_ms: Option<u64>Maximum time to wait for diagnostics after an edit, in milliseconds.
max_diagnostics_per_file: Option<usize>Cap on diagnostics surfaced per file.
include_warnings: Option<bool>When true, warnings (severity 2) are surfaced in addition to errors.
servers: Option<BTreeMap<String, Vec<String>>>Optional override for the language -> [cmd, ...args] table.
Trait Implementations§
Source§impl Clone for LspConfigToml
impl Clone for LspConfigToml
Source§fn clone(&self) -> LspConfigToml
fn clone(&self) -> LspConfigToml
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LspConfigToml
impl Debug for LspConfigToml
Source§impl Default for LspConfigToml
impl Default for LspConfigToml
Source§fn default() -> LspConfigToml
fn default() -> LspConfigToml
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LspConfigToml
impl<'de> Deserialize<'de> for LspConfigToml
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 LspConfigToml
impl RefUnwindSafe for LspConfigToml
impl Send for LspConfigToml
impl Sync for LspConfigToml
impl Unpin for LspConfigToml
impl UnsafeUnpin for LspConfigToml
impl UnwindSafe for LspConfigToml
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