Skip to content

Commit 97044e6

Browse files
committed
languages: set enableLSP to true while vim.lsp is enabled
1 parent f3c36cb commit 97044e6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

modules/plugins/languages/default.nix

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
{lib, ...}: let
1+
{
2+
config,
3+
lib,
4+
...
5+
}: let
26
inherit (lib.nvim.languages) mkEnable;
37
in {
48
imports = [
@@ -47,7 +51,11 @@ in {
4751
];
4852

4953
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.
5159
enableDAP = mkEnable "Debug Adapter";
5260
enableTreesitter = mkEnable "Treesitter";
5361
enableFormat = mkEnable "Formatting";

0 commit comments

Comments
 (0)