We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
enableLSP
vim.lsp
1 parent f3c36cb commit 97044e6Copy full SHA for 97044e6
modules/plugins/languages/default.nix
@@ -1,4 +1,8 @@
1
-{lib, ...}: let
+{
2
+ config,
3
+ lib,
4
+ ...
5
+}: let
6
inherit (lib.nvim.languages) mkEnable;
7
in {
8
imports = [
@@ -47,7 +51,11 @@ in {
47
51
];
48
52
49
53
options.vim.languages = {
50
- enableLSP = mkEnable "LSP";
54
+ # LSPs are now built into Neovim, and we should enable them by default
55
+ # if `vim.lsp.enable` is true.
56
+ enableLSP = mkEnable "LSP" // {default = config.vim.lsp.enable;};
57
+
58
+ # Those are still managed by plugins, and should be enabled here.
59
enableDAP = mkEnable "Debug Adapter";
60
enableTreesitter = mkEnable "Treesitter";
61
enableFormat = mkEnable "Formatting";
0 commit comments