Emacs: lsp: Enable semantic highlighting.
It is only available in clangd master branch yet, maybe clang 11?
This commit is contained in:
parent
91273b4510
commit
3b33519849
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user