From 02dc70363120beb28e770a872ab3960fb0920fa0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 26 May 2021 15:23:29 +0100 Subject: [PATCH] Hard code an exception to "node_modules" directores * eglot.el (eglot--directories-recursively): Fix. GitHub-reference: per https://github.com/joaotavora/eglot/issues/697 GitHub-reference: per https://github.com/joaotavora/eglot/issues/645 --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 706fa92522e..4c47ad004bb 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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)))) -- 2.39.2