Don't ask for project root; look fort compile_commands in build dir.

This commit is contained in:
tastytea 2019-10-08 18:34:45 +02:00
parent e965cd88e7
commit 6ff34a0518
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;; Time-stamp: <2019-10-08T13:44:40+00:00>
;; Time-stamp: <2019-10-08T16:15:13+00:00>
;;; Commentary:
;; Requires at least Emacs 24.3.
@ -459,6 +459,8 @@ With argument, do this that many times."
(use-package lsp-mode
:custom
(lsp-prefer-flymake nil) ; Disable flymake.
(lsp-auto-guess-root t) ; Don't ask for project root.
(lsp-clients-clangd-args '("-compile-commands-dir=build"))
:hook
(c++-mode . lsp)
(c-mode . lsp)