Emacs: LSP: Set lsp-keymap-prefix to C-c l …

… and enable which-key integration.
This commit is contained in:
tastytea 2020-08-28 03:42:28 +02:00
parent 2bef06c0ea
commit f6e62c441e
1 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;;; lsp.el --- Language Server Protocol. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-07-07T05:33:56+0200>
;; Time-stamp: <2020-08-28T03:42:07+0200>
;;; Commentary:
@ -21,7 +21,8 @@
(lsp-eldoc-render-all t)
(lsp-restart 'auto-restart)
(lsp-enable-semantic-highlighting t) ; Needs clangd 11(?).
(lsp-prefer-capf t))
(lsp-prefer-capf t)
(lsp-keymap-prefix "C-c l"))
:config (progn
(setq lsp-clients-clangd-args '("--compile-commands-dir=build"))
;; Add “-clang-tidy” to clangd args if the version supports it.
@ -34,7 +35,8 @@
(c-mode . lsp)
;; ↓ See <https://github.com/emacs-lsp/lsp-mode/issues/1736>. ↓
(lsp-managed-mode
. (lambda () (setq-local company-backends '(company-capf))))))
. (lambda () (setq-local company-backends '(company-capf))))
(lsp-mode . lsp-enable-which-key-integration)))
;; Eye-candy and flycheck support for lsp-mode.
(use-package lsp-ui