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:
Henrik Lissner 2024-09-09 16:08:06 -04:00
parent 374c28cedd
commit 005831bfcc
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
6 changed files with 9 additions and 10 deletions

View file

@ -191,9 +191,6 @@ This is ignored by ccls.")
(add-to-list 'projectile-globally-ignored-directories "^.ccls-cache$")
(add-to-list 'projectile-project-root-files-bottom-up ".ccls-root")
(add-to-list 'projectile-project-root-files-top-down-recurring "compile_commands.json"))
;; Avoid using `:after' because it ties the :config below to when `lsp-mode'
;; loads, rather than `ccls' loads.
(after! lsp-mode (require 'ccls))
:config
(set-evil-initial-state! 'ccls-tree-mode 'emacs)
(set-lsp-priority! 'ccls -2) ; Prioritize clangd over ccls