Skip to content

Commit

Permalink
Per #697, #645: Hard code an exception to "node_modules" directores
Browse files Browse the repository at this point in the history
* eglot.el (eglot--directories-recursively): Fix.

#697: joaotavora/eglot#697
#645: joaotavora/eglot#645
  • Loading branch information
joaotavora committed May 26, 2021
1 parent e8e5c94 commit 72c4fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/progmodes/eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -2884,7 +2884,7 @@ If NOERROR, return predicate, else erroring function."
(cl-loop with default-directory = dir
with completion-regexp-list = '("^[^.]")
for f in (file-name-all-completions "" dir)
if (file-directory-p f)
if (and (file-directory-p f) (not (string= "node_modules/" f)))
append (eglot--directories-recursively f))))


Expand Down

0 comments on commit 72c4fc3

Please sign in to comment.