Skip to content

Commit 47c7e99

Browse files
Add option for rust-analyzer.completion.termSearch.enable
1 parent 033a446 commit 47c7e99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

clients/lsp-rust.el

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,12 @@ and field accesses with self prefixed to them when inside a method."
816816
:group 'lsp-rust-analyzer
817817
:package-version '(lsp-mode . "8.0.0"))
818818

819+
(defcustom lsp-rust-analyzer-completion-term-search-enable nil
820+
"Enable term search based snippets like `Some(foo.bar().baz())`."
821+
:type 'boolean
822+
:group 'lsp-rust-analyzer
823+
:package-version '(lsp-mode . "9.0.1"))
824+
819825
(defcustom lsp-rust-analyzer-import-enforce-granularity nil
820826
"Whether to enforce the import granularity setting for all files.
821827
If set to nil rust-analyzer will try to keep import styles consistent per file."
@@ -1795,7 +1801,8 @@ https://github.com/rust-lang/rust-analyzer/blob/master/docs/dev/lsp-extensions.m
17951801
:addCallArgumentSnippets ,(lsp-json-bool lsp-rust-analyzer-completion-add-call-argument-snippets)
17961802
:postfix (:enable ,(lsp-json-bool lsp-rust-analyzer-completion-postfix-enable))
17971803
:autoimport (:enable ,(lsp-json-bool lsp-rust-analyzer-completion-auto-import-enable))
1798-
:autoself (:enable ,(lsp-json-bool lsp-rust-analyzer-completion-auto-self-enable)))
1804+
:autoself (:enable ,(lsp-json-bool lsp-rust-analyzer-completion-auto-self-enable))
1805+
:termSearch (:enable ,(lsp-json-bool lsp-rust-analyzer-completion-term-search-enable)))
17991806
:callInfo (:full ,(lsp-json-bool lsp-rust-analyzer-call-info-full))
18001807
:procMacro (:enable ,(lsp-json-bool lsp-rust-analyzer-proc-macro-enable))
18011808
:rustcSource ,lsp-rust-analyzer-rustc-source

0 commit comments

Comments
 (0)