diff options
author | John Turner <jturner.usa@gmail.com> | 2022-07-03 21:29:51 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2022-07-03 21:29:51 -0400 |
commit | e6b5e17a394cc8fdd827670b8fa1a81043c8a951 (patch) | |
tree | 30754c43c34a336053f893fa26ba8bf3b1876669 /config/eglot | |
download | emacs.d-e6b5e17a394cc8fdd827670b8fa1a81043c8a951.tar.gz |
init
Diffstat (limited to 'config/eglot')
-rw-r--r-- | config/eglot/config-eglot-servers.el | 9 | ||||
-rw-r--r-- | config/eglot/config-eglot.el | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/config/eglot/config-eglot-servers.el b/config/eglot/config-eglot-servers.el new file mode 100644 index 0000000..833766d --- /dev/null +++ b/config/eglot/config-eglot-servers.el @@ -0,0 +1,9 @@ +(defvar config-eglot-server-clangd '((c-mode c++-mode) . + ("clangd" + "--header-insersion=never"))) + +(defvar config-eglot-server-rust-analyzer '((rust-mode) . + ("rust-analyzer"))) + +(add-to-list 'eglot-server-programs config-eglot-server-clangd) +(add-to-list 'eglot-server-programs config-eglot-server-rust-analyzer) diff --git a/config/eglot/config-eglot.el b/config/eglot/config-eglot.el new file mode 100644 index 0000000..17b36de --- /dev/null +++ b/config/eglot/config-eglot.el @@ -0,0 +1,7 @@ +(require 'eglot) + +(setq eglot-autoshutdown t) + +(load "config-eglot-servers") + +(provide 'config-eglot) |