From 6ff34a05187e796939c062a9e1647763d265b32d Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 8 Oct 2019 18:34:45 +0200 Subject: [PATCH] Don't ask for project root; look fort compile_commands in build dir. --- init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index a597ddc..d436596 100644 --- a/init.el +++ b/init.el @@ -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)