-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have elixir_ls ignore files and directories #448
Comments
A PR would be welcome. The watcher is created here
|
This is an
But I'm not sure how well that is working so far. |
I have tried using this and it doesn't work for me. I find I have to set the variable explicitly in the
|
@peaceful-james Probably because His block worked for me. |
It might be useful to use a project's gitignore file as a starting point for what to ignore |
A bunch of these directories are now ignored by default. In my case, adding the following to my ; Elixir: Ignore files which don't need to be watched
; https://emacs-lsp.github.io/lsp-mode/page/file-watchers/
(after! lsp-mode
(dolist (match
'("[/\\\\]_build\\'"
"[/\\\\]deps\\'"))
(add-to-list 'lsp-file-watch-ignored-directories match))) |
Environment
elixir --version
;OS:
Artix Linux.
uname -a
:Editor:
Emacs 27.1
Editor Plugin
lsp-mode
Hello!
Thank you for everyone who created and contributes to
elixir_ls
.If there's one thing I can ask for with
elixir_ls
is for the ability to specify files and directories forelixir_ls
no to look at or in.Using Emacs and starting a Phoenix project, Emacs's lsp-mode will tell me
I imagine that's
deps
, and/or_build
. Is it possible to haveelixir_ls
ignore those directories?The text was updated successfully, but these errors were encountered: