Add more modes for eglot-ensure: Lua & JS/TS
Add a suitable time for eglot-autoreconnect (5 minutes of running) instead of being disabled
This commit is contained in:
parent
4f131024a8
commit
d6edbe1f2b
13
init.el
13
init.el
|
@ -868,12 +868,12 @@
|
||||||
:bind ( :map prog-mode-map
|
:bind ( :map prog-mode-map
|
||||||
("C-c c a" . eglot-code-actions)
|
("C-c c a" . eglot-code-actions)
|
||||||
("C-c c r" . eglot-rename))
|
("C-c c r" . eglot-rename))
|
||||||
:hook ((nix-mode . eglot-ensure)
|
:hook (((nix-mode lua-mode js-base-mode typescript-ts-base-mode) . eglot-ensure)
|
||||||
(eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))))
|
(eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))))
|
||||||
:custom
|
:custom
|
||||||
(eglot-extend-to-xref t)
|
(eglot-extend-to-xref t)
|
||||||
(eglot-autoshutdown t)
|
(eglot-autoshutdown t)
|
||||||
(eglot-autoreconnect nil)
|
(eglot-autoreconnect (* 60 5))
|
||||||
:init
|
:init
|
||||||
(setq eglot-stay-out-of '(flymake))
|
(setq eglot-stay-out-of '(flymake))
|
||||||
:config
|
:config
|
||||||
|
@ -903,15 +903,6 @@
|
||||||
:flake
|
:flake
|
||||||
( :autoArchive t
|
( :autoArchive t
|
||||||
:nixpkgsInputName "nixpkgs")))))
|
:nixpkgsInputName "nixpkgs")))))
|
||||||
;; (with-eval-after-load 'cape
|
|
||||||
;; (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
|
||||||
;; (defun my/eglot-capf ()
|
|
||||||
;; (setq-local completion-at-point-functions
|
|
||||||
;; (list (cape-capf-super
|
|
||||||
;; #'eglot-completion-at-point
|
|
||||||
;; #'tempel-expand
|
|
||||||
;; #'cape-file))))
|
|
||||||
;; (add-hook 'eglot-managed-mode-hook #'my/eglot-capf))
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package apheleia
|
(use-package apheleia
|
||||||
|
|
Loading…
Reference in a new issue