diff options
Diffstat (limited to 'lisp/init-eglot.el')
-rw-r--r-- | lisp/init-eglot.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/init-eglot.el b/lisp/init-eglot.el index 8dfe291..9014735 100644 --- a/lisp/init-eglot.el +++ b/lisp/init-eglot.el @@ -1,5 +1,12 @@ (use-package eglot :ensure t + :init + ;; eglot passes tab-width as tab size to the lsp server, but most language + ;; servers treat this as an indentation width + ;; https://github.com/joaotavora/eglot/issues/157 + ;; + ;; set a default value that fits most languages + (setq-default tab-width 4) :hook ;; load eglot automatically for these modes ((go-mode . eglot-ensure) |