mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Format before save when using eglot
This commit is contained in:
parent
476b8fdb5a
commit
2d2481e11d
4
init.org
4
init.org
@ -1523,7 +1523,9 @@
|
|||||||
|
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:defer t
|
:defer t
|
||||||
:hook (eglot-managed-mode . (lambda () (eglot-inlay-hints-mode -1)))
|
:hook (eglot-managed-mode . (lambda ()
|
||||||
|
(eglot-inlay-hints-mode -1)
|
||||||
|
(add-hook 'before-save-hook 'eglot-format nil t)))
|
||||||
:config
|
:config
|
||||||
(setq eglot-events-buffer-size 0)
|
(setq eglot-events-buffer-size 0)
|
||||||
(add-to-list 'eglot-server-programs
|
(add-to-list 'eglot-server-programs
|
||||||
|
Loading…
Reference in New Issue
Block a user