fix lsp-mode interaction with nix results

This commit is contained in:
Nathan McCarty 2022-09-09 20:54:07 -04:00
parent bb72a084d1
commit 463c1eb5d4
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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