mirror of
https://github.com/neovim/neovim.git
synced 2025-12-13 18:12:50 +00:00
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 3c4acc0f1a)
This commit is contained in:
committed by
github-actions[bot]
parent
a4319015ee
commit
a7eb110098
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user