summaryrefslogtreecommitdiff
path: root/config/eglot
diff options
context:
space:
mode:
Diffstat (limited to 'config/eglot')
-rw-r--r--config/eglot/config-eglot-servers.el9
-rw-r--r--config/eglot/config-eglot.el7
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)