mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user