Emacs: Automatically restart lsp-server.

This commit is contained in:
tastytea 2020-03-09 15:04:48 +01:00
parent 7d156ec586
commit 54c1b466cf
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-02-26T04:48:29+0100>
;; Time-stamp: <2020-03-09T15:04:37+0100>
;;; Commentary:
@ -20,6 +20,7 @@
(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.
:config
(setq lsp-clients-clangd-args '("--compile-commands-dir=build"))