mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 15:40:20 -05: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:
1 parent
73ee507317
commit
3c4acc0f1a
1 file changed
-1
@@ -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