From 3b33519849cd4f7652e291ecaffe8974dd9cabc4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 7 Jul 2020 05:31:05 +0200 Subject: [PATCH] Emacs: lsp: Enable semantic highlighting. It is only available in clangd master branch yet, maybe clang 11? --- init.d/programming/lsp.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.d/programming/lsp.el b/init.d/programming/lsp.el index d1c738b..7371b78 100644 --- a/init.d/programming/lsp.el +++ b/init.d/programming/lsp.el @@ -1,6 +1,6 @@ ;;; lsp.el --- Language Server Protocol. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-05-24T22:49:17+0200> +;; Time-stamp: <2020-07-07T05:30:48+0200> ;;; Commentary: @@ -18,8 +18,9 @@ :diminish lsp-mode :custom ((lsp-prefer-flymake nil) ; Disable flymake. (lsp-auto-guess-root t) ; Don't ask for project root. - (lsp-eldoc-render-all t) ; Display all eldoc information. - (lsp-restart 'auto-restart)) ; Automatically restart server. + (lsp-eldoc-render-all t) + (lsp-restart 'auto-restart) + (lsp-enable-semantic-highlighting t)) ; Needs clangd 11(?). :config (progn (setq lsp-clients-clangd-args '("--compile-commands-dir=build")) ;; Add “-clang-tidy” to clangd args if the version supports it.