From 835aa0e9b351e371be82f0661e438b13e641a5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 26 May 2021 15:23:29 +0100 Subject: [PATCH] Per #697, #645: Hard code an exception to "node_modules" directores * eglot.el (eglot--directories-recursively): Fix. --- eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eglot.el b/eglot.el index 706fa925..4c47ad00 100644 --- a/eglot.el +++ b/eglot.el @@ -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))))