summaryrefslogtreecommitdiff
path: root/init/eglot/init-eglot-servers.el
diff options
context:
space:
mode:
Diffstat (limited to 'init/eglot/init-eglot-servers.el')
-rw-r--r--init/eglot/init-eglot-servers.el9
1 files changed, 9 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)