fix lsp-mode interaction with nix results
This commit is contained in:
parent
bb72a084d1
commit
463c1eb5d4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue