You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to conditionally load a plugin(an extension plugin for a language server) using cond = vim.lsp.is_enabled(ls_name), so I would like to load this extension plugin after lspconfig spec because I put all vim.lsp.config stuff within it.
That is, to evaluate the cond correctly, lspconfig needs to be loaded before the extension plugin.
I know I may migrate vim.lsp.enable() stuff to general lua file but I want to keep it lazy together with lspconfig if possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to conditionally load a plugin(an extension plugin for a language server) using
cond = vim.lsp.is_enabled(ls_name)
, so I would like to load this extension plugin after lspconfig spec because I put allvim.lsp.config
stuff within it.That is, to evaluate the
cond
correctly, lspconfig needs to be loaded before the extension plugin.Beta Was this translation helpful? Give feedback.
All reactions