-
-
Notifications
You must be signed in to change notification settings - Fork 201
Open
Description
I have verified that this feature request has not been made before
- I have checked the issues tab, and did not find a similar feature request. I understand that my issue will be closed if it is a duplicate.
Feature Type
Other
Feature description
Proposal
- Default to configuring language servers with vim.lsp.config.
- Provide an opt-in
vim.languages.<lang>.extensionsto let language-specific plugins (e.g. rustaceanvim, haskell-tools.nvim) take over LSP management by disabling the built-in enable for that server. Similar to how we have done it withcrates.nvim
Example
{
vim.languages.haskell.enable = true;
vim.languages.haskell.extensions.haskell-tools-nvim.enable = true;
vim.languages.rust.enable = true;
vim.languages.rust.extensions = {
rustaceanvim.enable = true;
crates-nvim.enable = true;
};
}Notes
- When an extension is enabled, ensure the corresponding
vim.lsp.enableis disabled to avoid double-registration. (breaks things)
Compatibility references
- mrcjkb/haskell-tools.nvim@53d9888
- feat(lsp): preliminary support for
vim.lsp.configmrcjkb/rustaceanvim#660
Alternatives
No response
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels