summaryrefslogtreecommitdiff
path: root/init/eglot
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2022-10-07 03:10:21 -0400
committerJohn Turner <jturner.usa@gmail.com>2022-10-07 03:10:21 -0400
commit6fac8a28da9bf30da71941340505c2316d0db5a3 (patch)
treef7d840005abe0195e093fa0db6f1e44ecba0ba8d /init/eglot
parentceaa741cfb13938aa359f33f926ccdcb2689f303 (diff)
downloademacs.d-6fac8a28da9bf30da71941340505c2316d0db5a3.tar.gz
changed the config-* prefix to init-* for all of the init files
Diffstat (limited to 'init/eglot')
-rw-r--r--init/eglot/init-eglot-servers.el9
-rw-r--r--init/eglot/init-eglot.el7
2 files changed, 16 insertions, 0 deletions
diff --git a/init/eglot/init-eglot-servers.el b/init/eglot/init-eglot-servers.el
new file mode 100644
index 0000000..2dce402
--- /dev/null
+++ b/init/eglot/init-eglot-servers.el
@@ -0,0 +1,9 @@
+(defvar init-eglot-server-clangd '((c-mode c++-mode) .
+ ("clangd"
+ "--header-insersion=never")))
+
+(defvar init-eglot-server-rust-analyzer '((rust-mode) .
+ ("rust-analyzer")))
+
+(add-to-list 'eglot-server-programs init-eglot-server-clangd)
+(add-to-list 'eglot-server-programs init-eglot-server-rust-analyzer)
diff --git a/init/eglot/init-eglot.el b/init/eglot/init-eglot.el
new file mode 100644
index 0000000..dd85cca
--- /dev/null
+++ b/init/eglot/init-eglot.el
@@ -0,0 +1,7 @@
+(require 'eglot)
+
+(setq eglot-autoshutdown t)
+
+(load "init-eglot-servers")
+
+(provide 'init-eglot)