Skip to content

Commit a9c5fec

Browse files
committed
Do not enable snippetTextEdit support if yasnippet is not present
Fixes #2280
1 parent 997b38f commit a9c5fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/lsp-rust.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ The command should include `--message=format=json` or similar option."
605605
(lsp-rust-analyzer-inlay-hints-mode)))
606606
:ignore-messages nil
607607
:server-id 'rust-analyzer
608-
:custom-capabilities `((experimental . ((snippetTextEdit . ,lsp-enable-snippet ))))
608+
:custom-capabilities `((experimental . ((snippetTextEdit . ,(and lsp-enable-snippet (featurep 'yasnippet))))))
609609
:download-server-fn (lambda (_client callback error-callback _update?)
610610
(lsp-package-ensure 'rust-analyzer callback error-callback))))
611611

0 commit comments

Comments
 (0)