File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ tokens legend."
206206 :modifiers
207207 ,(lsp-erlang-elp--semantic-modifiers))
208208 :server-id 'elp
209- :custom-capabilities `((experimental . ((snippetTextEdit . ,(and lsp-enable-snippet (featurep 'yasnippet ))))))
209+ :custom-capabilities `((experimental . ((snippetTextEdit . ,(and lsp-enable-snippet (fboundp 'yas-minor-mode ))))))
210210 :download-server-fn (lambda (_client callback error-callback _update? )
211211 (lsp-package-ensure 'erlang-language-platform callback error-callback))))
212212
Original file line number Diff line number Diff line change @@ -1760,7 +1760,7 @@ https://github.com/rust-lang/rust-analyzer/blob/master/docs/dev/lsp-extensions.m
17601760 :semantic-tokens-faces-overrides `( :discard-default-modifiers t
17611761 :modifiers ,(lsp-rust-analyzer--semantic-modifiers))
17621762 :server-id 'rust-analyzer
1763- :custom-capabilities `((experimental . ((snippetTextEdit . ,(and lsp-enable-snippet (featurep 'yasnippet ))))))
1763+ :custom-capabilities `((experimental . ((snippetTextEdit . ,(and lsp-enable-snippet (fboundp 'yas-minor-mode ))))))
17641764 :download-server-fn (lambda (_client callback error-callback _update? )
17651765 (lsp-package-ensure 'rust-analyzer callback error-callback))))
17661766
Original file line number Diff line number Diff line change 5656(require 'xref)
5757(require 'minibuffer)
5858(require 'help-mode)
59- (require 'yasnippet nil t)
6059(require 'lsp-protocol)
6160
6261(defgroup lsp-mode nil
@@ -3680,7 +3679,7 @@ disappearing, unset all the variables related to it."
36803679 (resolveSupport . ((properties . ["edit" "command"])))
36813680 (dataSupport . t)))
36823681 (completion . ((completionItem . ((snippetSupport . ,(cond
3683- ((and lsp-enable-snippet (not (featurep 'yasnippet)) t )
3682+ ((and lsp-enable-snippet (not (fboundp 'yas-minor-mode)) )
36843683 (lsp--warn (concat
36853684 "Yasnippet is not installed, but `lsp-enable-snippet' is set to `t'. "
36863685 "You must either install yasnippet, or disable snippet support."))
@@ -4479,6 +4478,7 @@ from language server.")
44794478 "Wrapper of `yas-expand-snippet' with all of it arguments.
44804479The snippet will be convert to LSP style and indent according to
44814480LSP server result."
4481+ (require 'yasnippet nil t)
44824482 (let* ((inhibit-field-text-motion t)
44834483 (yas-wrap-around-region nil)
44844484 (yas-indent-line 'none)
You can’t perform that action at this time.
0 commit comments