Let eglot manage flymake integration again
This commit is contained in:
parent
069edf6ccf
commit
c506b69100
6
init.el
6
init.el
|
@ -1052,8 +1052,7 @@
|
|||
:bind ( :map prog-mode-map
|
||||
("C-c c a" . eglot-code-actions)
|
||||
("C-c c r" . eglot-rename))
|
||||
:hook ((prog-mode . eglot-ensure)
|
||||
(eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))))
|
||||
:hook ((prog-mode . eglot-ensure))
|
||||
:custom
|
||||
(eglot-menu-string "lsp")
|
||||
(eglot-extend-to-xref t)
|
||||
|
@ -1062,9 +1061,8 @@
|
|||
(eglot-connect-timeout 300)
|
||||
(eglot-autoreconnect (* 60 5))
|
||||
(eglot-events-buffer-config '(:size 0))
|
||||
:init
|
||||
(setq eglot-stay-out-of '(flymake))
|
||||
:config
|
||||
(add-to-list 'eglot-server-programs '((python-mode python-ts-mode) "basedpyright" "--stdio"))
|
||||
(add-to-list 'eglot-server-programs '(scad-mode "openscad-lsp"))
|
||||
(setq-default eglot-workspace-configuration
|
||||
'( :basedpyright ( :typeCheckingMode "recommended"
|
||||
|
|
Loading…
Reference in a new issue