|
|
|
@ -365,6 +365,25 @@ pub fn get_terminal_provider() -> Option<TerminalConfig> {
|
|
|
|
|
None
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
|
|
|
|
#[serde(default, rename_all = "kebab-case", deny_unknown_fields)]
|
|
|
|
|
pub struct VimInlayConfig {
|
|
|
|
|
pub enable: bool,
|
|
|
|
|
pub type_inlay_prefix: String,
|
|
|
|
|
pub parameter_inlay_prefix: String,
|
|
|
|
|
pub other_inlay_prefix: String,
|
|
|
|
|
}
|
|
|
|
|
impl Default for VimInlayConfig {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
Self {
|
|
|
|
|
enable: false,
|
|
|
|
|
type_inlay_prefix: String::from(" => "),
|
|
|
|
|
parameter_inlay_prefix: String::from(" <= "),
|
|
|
|
|
other_inlay_prefix: String::from(" == "),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
|
|
|
|
#[serde(default, rename_all = "kebab-case", deny_unknown_fields)]
|
|
|
|
|
pub struct LspConfig {
|
|
|
|
@ -378,6 +397,8 @@ pub struct LspConfig {
|
|
|
|
|
pub display_signature_help_docs: bool,
|
|
|
|
|
/// Display inlay hints
|
|
|
|
|
pub display_inlay_hints: bool,
|
|
|
|
|
/// Vim-style inlay hints
|
|
|
|
|
pub vim_inlay_hints: VimInlayConfig,
|
|
|
|
|
/// Whether to enable snippet support
|
|
|
|
|
pub snippets: bool,
|
|
|
|
|
/// Whether to include declaration in the goto reference query
|
|
|
|
@ -392,6 +413,7 @@ impl Default for LspConfig {
|
|
|
|
|
auto_signature_help: true,
|
|
|
|
|
display_signature_help_docs: true,
|
|
|
|
|
display_inlay_hints: false,
|
|
|
|
|
vim_inlay_hints: VimInlayConfig::default(),
|
|
|
|
|
snippets: true,
|
|
|
|
|
goto_reference_include_declaration: true,
|
|
|
|
|
}
|
|
|
|
|