Skip to content

Commit

Permalink
Per joaotavora/eglot#697, joaotavora/eglot#645: Hard code an exceptio…
Browse files Browse the repository at this point in the history
…n to "node_modules" directores

* eglot.el (eglot--directories-recursively): Fix.
  • Loading branch information
joaotavora committed May 26, 2021
1 parent 658bcc6 commit ceff167
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 ceff167

Please sign in to comment.