From 4d49ea36657210926591f6048439ebebd263f764 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Tue, 16 Nov 2021 15:08:45 +0100 Subject: [PATCH] Add LSP for C, C++ and cmake --- config.el | 5 +++++ init.el | 4 ++-- packages.el | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.el b/config.el index d8e555d..988be66 100644 --- a/config.el +++ b/config.el @@ -3,6 +3,11 @@ ;; Place your private configuration here! Remember, you do not need to run 'doom ;; sync' after modifying this file! +;; Notes: +;; * Don't forget to =pip install cmake-language-server= + +(require 'irony) + ;; Some functionality uses this to identify you, e.g. GPG configuration, email ;; clients, file templates and snippets. (setq user-full-name "Maël MARTIN" diff --git a/init.el b/init.el index 024d33d..f07c588 100644 --- a/init.el +++ b/init.el @@ -93,7 +93,7 @@ (eval +overlay) ; run code, run (also, repls) ;;gist ; interacting with github gists lookup ; navigate your code and its documentation - ;;lsp ; M-x vscode + (lsp +clangd +cmake) ; M-x vscode magit ; a git porcelain for Emacs ;;make ; run make tasks from Emacs ;;pass ; password manager for nerds @@ -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 diff --git a/packages.el b/packages.el index db2189d..7230a3d 100644 --- a/packages.el +++ b/packages.el @@ -49,6 +49,7 @@ ;; Packages that are on melpa (package! org-bullets) +(package! irony) ;; Manual packages download that are not on melpa goes after (require 'quelpa-use-package) -- GitLab