refactor(lsp): let lsp-mode load lsp client packages
Most of these lsp packages are already in `lsp-client-packages`, which lsp-mode will eagerly load the first time `lsp-mode` is activated, so we don't need to do it ourselves, except in cases where the package isn't in `lsp-client-packages` (like lsp-julia).
This commit is contained in:
parent
374c28cedd
commit
005831bfcc
6 changed files with 9 additions and 10 deletions
|
@ -26,8 +26,9 @@
|
|||
|
||||
|
||||
(use-package! lsp-sourcekit
|
||||
:when (and (modulep! +lsp) (not (modulep! :tools lsp +eglot)))
|
||||
:after swift-mode
|
||||
:when (modulep! +lsp)
|
||||
:when (not (modulep! :tools lsp +eglot))
|
||||
:defer t
|
||||
:init (add-hook 'swift-mode-local-vars-hook #'lsp! 'append)
|
||||
:config
|
||||
(set-formatter! 'swiftformat '("swiftformat" "--output" "stdout"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue