You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(use-package lsp-mode
:hook
(;; for yas
(lsp-mode . yas-minor-mode)
;; for change prefix keys;; get from this issue https://github.com/emacs-lsp/lsp-mode/issues/1532
(lsp-mode . (lambda ()
(let ((lsp-keymap-prefix "C-c l"))
(lsp-enable-which-key-integration))))
)
:commands (lsp lsp-deferred))
Then after I open my rust project, lsp-mode load fine but yas hasn't loaded.
If I change config to
(use-package lsp-mode
:hook
(;; for yas
(lsp-mode . yas-minor-mode)
;; for change prefix keys;; get from this issue https://github.com/emacs-lsp/lsp-mode/issues/1532;;(lsp-mode . (lambda ();; (let ((lsp-keymap-prefix "C-c l"));; (lsp-enable-which-key-integration))))
)
:commands (lsp lsp-deferred))
Yas loaded well.
Steps to reproduce
Just as the config in bug description.
Expected behavior
Expect yas mode load after lsp-mode load.
Which Language Server did you use?
rust-analyzer
OS
MacOS
Error callstack
No response
Anything else?
before today, I use :init (setq lsp-keymap-prefix "C-c l") to set lsp-keymap-prefix, but it doesn't work anymore. So I found #1532 and make the change as the config I post upper. lsp-keymap-prefix works fine now, but then the yas doesn't load.
The text was updated successfully, but these errors were encountered:
(use-package lsp-mode
:init
(setq lsp-keymap-prefix "C-c l")
:hook
(;; for yas
(lsp-mode . yas-minor-mode)
)
:commands (lsp lsp-deferred)
:bind
(:map lsp-mode-map
("C-c l g d". lsp-find-definition) ;; I like d => definition rather than g
)
:config
(define-key lsp-mode-map (kbd"C-c l") lsp-command-map))
Still don't know why the hook config upper doesn't work.
Thank you for the bug report
lsp-mode
related packages.where
lsp-start-plain.el
can be downloaded here.Bug description
My lsp-mode configuration is
Then after I open my rust project, lsp-mode load fine but yas hasn't loaded.
If I change config to
Yas loaded well.
Steps to reproduce
Just as the config in bug description.
Expected behavior
Expect yas mode load after lsp-mode load.
Which Language Server did you use?
rust-analyzer
OS
MacOS
Error callstack
No response
Anything else?
before today, I use
:init (setq lsp-keymap-prefix "C-c l")
to set lsp-keymap-prefix, but it doesn't work anymore. So I found #1532 and make the change as the config I post upper.lsp-keymap-prefix
works fine now, but then the yas doesn't load.The text was updated successfully, but these errors were encountered: