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
The reason being that having two separate functions to have the user setup is not very friendly, the preference would be to keep setup code as minimal as possible, at the same time, provide more flexibility to the user if in case they might want to adjust some settings.
But since the API is different in diagnostic-languageserver compared to efm-langserver, I'm thinking of creating a wrapper to generate the LSP config and then have the user merge them on lspconfig.diagnosticls.setup().
Omit
init()
andsetup()
just like it was done in creativenull/efmls-configs-nvim#30.The reason being that having two separate functions to have the user setup is not very friendly, the preference would be to keep setup code as minimal as possible, at the same time, provide more flexibility to the user if in case they might want to adjust some settings.
But since the API is different in diagnostic-languageserver compared to efm-langserver, I'm thinking of creating a wrapper to generate the LSP config and then have the user merge them on
lspconfig.diagnosticls.setup()
.New proposal example:
For defaults:
To add additional languages or to overrides defaults, just pass the same table structure as in
create()
:The text was updated successfully, but these errors were encountered: