From f6e62c441e3ed62f77ac96159a9094d79834802f Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 28 Aug 2020 03:42:28 +0200 Subject: [PATCH] =?UTF-8?q?Emacs:=20LSP:=20Set=20lsp-keymap-prefix=20to=20?= =?UTF-8?q?C-c=20l=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and enable which-key integration. --- init.d/programming/lsp.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init.d/programming/lsp.el b/init.d/programming/lsp.el index 9d7babb..a0d4e05 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-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 . ↓ (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