summaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorVitalii Solodilov2023-04-27 14:30:15 +0000
committerGitHub2023-04-27 14:30:15 +0000
commit2836ea2ac40bd54ec1b00ffcd5927cdb4b7724d3 (patch)
tree0fdc72cc6ac4f82f67b160f0b3cbabe4cbdb862d /helix-view
parent222be0f1e769177241eb2d8d8dfb0de42e450820 (diff)
feat: add a config option to exclude declaration from LSP references (#6886)
* feat: added the config option to exclude declaration from reference query Fixes: #5344 * fix: review * fix: review
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 52f86f2d..fd0abe91 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -354,6 +354,8 @@ pub struct LspConfig {
pub display_inlay_hints: bool,
/// Whether to enable snippet support
pub snippets: bool,
+ /// Whether to include declaration in the goto reference query
+ pub goto_reference_include_declaration: bool,
}
impl Default for LspConfig {
@@ -365,6 +367,7 @@ impl Default for LspConfig {
display_signature_help_docs: true,
display_inlay_hints: false,
snippets: true,
+ goto_reference_include_declaration: true,
}
}
}