Remove eglot-ensure hooks
This commit is contained in:
parent
87692cc787
commit
f56f7605df
|
@ -1100,12 +1100,7 @@
|
|||
("C-c c e" . eglot)
|
||||
("C-c c a" . eglot-code-actions)
|
||||
("C-c c r" . eglot-rename))
|
||||
:hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t)))
|
||||
(nix-mode . (lambda () (if (executable-find "nixd" t) (eglot-ensure))))
|
||||
(python-base-mode . (lambda () (if (executable-find "pylsp" nil) (eglot-ensure))))
|
||||
((lua-mode lua-ts-mode) . (lambda () (if (executable-find "lua-language-server" nil) (eglot-ensure))))
|
||||
((rust-mode rust-ts-mode) . (lambda () (if (executable-find "rust-analyzer" nil) (eglot-ensure))))
|
||||
(js-ts-mode . (lambda () (if (executable-find "typescript-language-server" nil) (eglot-ensure)))))
|
||||
:hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))))
|
||||
:custom
|
||||
(eglot-menu-string "lsp")
|
||||
(eglot-send-changes-idle-time 0.5)
|
||||
|
|
Loading…
Reference in a new issue