Emacs: Add keybinding for lsp-execute-code-action.

This commit is contained in:
tastytea 2020-03-27 17:04:09 +01:00
parent e85bb766d7
commit 287e1393fc
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
;;; lsp.el --- Language Server Protocol. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-18T14:57:43+0100>
;; Time-stamp: <2020-03-27T17:03:12+0100>
;;; Commentary:
@ -27,6 +27,7 @@
(add-to-list 'lsp-clients-clangd-args "--clang-tidy" t))
;; Mark lsp-clients-clangd-args as safe to override.
(put 'lsp-clients-clangd-args 'safe-local-variable #'consp))
:bind ("C-c C-f" . lsp-execute-code-action)
:hook ((c++-mode . lsp)
(c-mode . lsp)))