From 463c1eb5d460f637f37f74fd588bd072d02dfbee Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 9 Sep 2022 20:54:07 -0400 Subject: [PATCH] fix lsp-mode interaction with nix results --- doom.d/config.el | 4 ++++ doom.d/config.org | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/doom.d/config.el b/doom.d/config.el index 3ec44d1..b4908ae 100644 --- a/doom.d/config.el +++ b/doom.d/config.el @@ -302,6 +302,10 @@ work if it thinks it needs to." (use-package! rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode)) +(after! lsp-mode + (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\result\\") + (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\result-doc\\")) + (after! lsp-ui (setq lsp-ui-sideline-show-diagnostics t lsp-ui-sideline-show-hover t diff --git a/doom.d/config.org b/doom.d/config.org index cf37864..d2da793 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -465,6 +465,12 @@ Makes pairs of delimiters into pretty colors. Hook this into prog-mode #+end_src ** LSP Mode Custom configuration for lsp-mode +*** Exclude nix directories from file watchers +#+begin_src emacs-lisp +(after! lsp-mode + (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\result\\") + (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\result-doc\\")) +#+end_src *** LSP UI Turn on the UI features we want **** Sideline