From a7eb1100982a5bbb9b2d7f3a3b1b1d9d76995e35 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Tue, 21 Oct 2025 07:16:19 -0700 Subject: [PATCH] fix(lsp): noisy log message when enabling server without config #36264 This warning doesn't really make sense, since the `enable()` call is meant to be run before the `lsp.config` calls. It will be logged many times (once for each enabled LSP) at startup. This is especially annoying because calling `enable()` after configuration causes the first opened buffer not to have its filetype set in some situations. This is a separate bug which really needs to be fixed, and makes this superfluous logging more likely. (cherry picked from commit 3c4acc0f1a2ba3c54e858283cf949e28079eb379) --- runtime/lua/vim/lsp.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 2bba2a742f..2abd4164e4 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -429,7 +429,6 @@ lsp.config = setmetatable({ _configs = {} }, { end if not rtp_config and not self._configs[name] then - log.warn(('%s does not have a configuration'):format(name)) return end