diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2021-10-14 11:51:55 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2021-10-14 11:52:17 -0600 |
commit | 23e8a497fe54001c9b0ff44cc3bdefaeaf7be1c4 (patch) | |
tree | d07108183ac82cd28bb478fd4e89604209f67398 /config/emacs | |
parent | acb8bd99c7f3f8c71a748f3811826c359302cef4 (diff) | |
download | dotfiles-23e8a497fe54001c9b0ff44cc3bdefaeaf7be1c4.tar.gz dotfiles-23e8a497fe54001c9b0ff44cc3bdefaeaf7be1c4.tar.xz |
emacs: lsp: ignore some watched files
Taken from: https://www.adelbertc.com/emacs-rls-nix/
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'config/emacs')
-rw-r--r-- | config/emacs/emacs.d/lisp/init-lsp.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/emacs/emacs.d/lisp/init-lsp.el b/config/emacs/emacs.d/lisp/init-lsp.el index 05c90136..3c1201e4 100644 --- a/config/emacs/emacs.d/lisp/init-lsp.el +++ b/config/emacs/emacs.d/lisp/init-lsp.el @@ -48,6 +48,7 @@ (defvar lsp-ui-doc-position) (defvar lsp-ui-doc-alignment) (defvar lsp-auto-configure) +(defvar lsp-file-watch-ignored) (use-package lsp-mode @@ -77,6 +78,28 @@ "-log=error")) (setq lsp-clients-go-server-args '("--cache-style=always" "--diagnostics-style=onsave")) + (setq lsp-file-watch-ignored + '("[/\\\\]\\.direnv$" + "[/\\\\]\\.git$" + "[/\\\\]\\.hg$" + "[/\\\\]\\.bzr$" + "[/\\\\]_darcs$" + "[/\\\\]\\.svn$" + "[/\\\\]_FOSSIL_$" + "[/\\\\]\\.idea$" + "[/\\\\]\\.ensime_cache$" + "[/\\\\]\\.eunit$" + "[/\\\\]node_modules$" + "[/\\\\]\\.fslckout$" + "[/\\\\]\\.tox$" + "[/\\\\]\\.stack-work$" + "[/\\\\]\\.bloop$" + "[/\\\\]\\.metals$" + "[/\\\\]target$" + "[/\\\\]\\.deps$" + "[/\\\\]\\.build-aux$" + "[/\\\\]autom4te.cache$" + "[/\\\\]\\.reference$")) (setq lsp-semantic-tokens-enable t) (setq lsp-completion-provider ':capf)) |