vim.lsp.enable not enabling LSP
⚠️ Please verify that this bug has NOT been reported before.
- [x] I checked all existing issues and didn't find a similar issue
Description
I believe this option is not the correct to enable LSP since I saw also vim.languages.enableLSP also work, but maybe the correct behavior is this one to alias the other config since it is misleading users to believe it will enable the languages.
👟 Reproduction steps
programs.nvf = {
enable = true;
settings = {
vim = {
lsp.enable = true;
languages = {
nix.enable = true;
};
statusline.lualine.enable = true;
};
};
👀 Expected behavior
Show that LSP is enabled.
😓 Actual Behavior
💻 Metadata
📝 Relevant log output
-
vim.languages.enableLSP = true;
This option might do the trick for you
I should probably set enableLSP to true when vim.lsp.enable = true;
I should probably set
enableLSPto true whenvim.lsp.enable = true;
I guess so. They are written absolutely the same, I still did not get the difference. If you auto set this, would make user experience better for sure.
I would even make both enabled if any language is enabled, do they have any use if LSP is off?
Addressed in c2620716fdc95f2e6a024ee2595f164dc8f6a310, which should be in the main branch soon.