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.
This commit is contained in:
Riley Bruins
2025-10-21 07:16:19 -07:00
committed by GitHub
parent 73ee507317
commit 3c4acc0f1a

View File

@@ -376,7 +376,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