summary refs log tree commit diff
diff options
context:
space:
mode:
authorTerin Stock <terinjokes@gmail.com>2022-05-03 00:37:00 -0700
committerTerin Stock <terinjokes@gmail.com>2022-05-03 00:37:00 -0700
commit3c614976eb61a6618f84a3668fa778eb0bf1a943 (patch)
treeee3bf7f63fac0fc476dd6e9e204a4319ba534628
parent2d0c8856692cc63fe56c52725c264832c5daaaf8 (diff)
feat: lsp support for C/C++
-rw-r--r--config.el2
-rw-r--r--init.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.el b/config.el
index 2649b2a..b2ac683 100644
--- a/config.el
+++ b/config.el
@@ -80,4 +80,4 @@
 (load! "lang/go")
 (load! "app/osm")
 
-
+(set-eglot-client! 'c-mode '("clangd" "-j=3" "--clang-tidy"))
diff --git a/init.el b/init.el
index 6d35edb..433bcdc 100644
--- a/init.el
+++ b/init.el
@@ -112,7 +112,7 @@
        :lang
        ;;agda              ; types of types of types of types...
        ;;beancount         ; mind the GAAP
-       ;;cc                ; C > C++ == 1
+       (cc +lsp)           ; C > C++ == 1
        ;;clojure           ; java with a lisp
        ;;common-lisp       ; if you've seen one lisp, you've seen them all
        ;;coq               ; proofs-as-programs