pub struct RumdlLspConfig {
pub config_path: Option<String>,
pub enable_linting: bool,
pub enable_auto_fix: bool,
pub enable_rules: Option<Vec<String>>,
pub disable_rules: Option<Vec<String>>,
pub configuration_preference: ConfigurationPreference,
pub settings: Option<LspRuleSettings>,
pub enable_link_completions: bool,
pub enable_link_navigation: bool,
pub enable_symbols: bool,
pub link_completion_content_roots: Vec<String>,
}Expand description
Configuration for the rumdl LSP server (from initialization options)
Uses camelCase for all fields per LSP specification. Follows Ruff’s LSP configuration pattern for consistency.
Fields§
§config_path: Option<String>Path to rumdl configuration file
enable_linting: boolEnable/disable real-time linting
enable_auto_fix: boolEnable/disable auto-fixing on save
enable_rules: Option<Vec<String>>Rules to enable (overrides config file) If specified, only these rules will be active
disable_rules: Option<Vec<String>>Rules to disable (overrides config file)
configuration_preference: ConfigurationPreferenceControls priority between editor settings and config files
settings: Option<LspRuleSettings>Rule-specific settings passed from the editor This allows configuring rules like MD013.lineLength directly from editor settings
enable_link_completions: boolEnable file path and heading anchor completions inside markdown link targets
When true, typing ]( triggers file path suggestions and # triggers anchor suggestions
Enable hover preview, go-to-definition, find-references, and rename for markdown links When false, rumdl will not respond to these requests, avoiding conflicts with other LSPs that provide the same features (e.g., PKM-focused LSPs)
enable_symbols: boolEnable the document and workspace symbol providers (the heading outline and cross-file heading search). When false, rumdl advertises neither symbol capability and answers neither request, avoiding duplicate heading entries when another Markdown LSP (e.g. marksman, markdown-oxide) already provides the outline. Takes effect when the server (re)starts, like the other capability flags.
link_completion_content_roots: Vec<String>Content roots for absolute-style link completion (e.g. /img/01.webp).
Each entry is an absolute path, or a path relative to the workspace root.
When empty, the workspace root folders are used.
Trait Implementations§
Source§impl Clone for RumdlLspConfig
impl Clone for RumdlLspConfig
Source§fn clone(&self) -> RumdlLspConfig
fn clone(&self) -> RumdlLspConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more