lsp: add haskell language server

This commit is contained in:
Pedro Alves 2022-12-01 14:05:35 +00:00
parent bc045bd50a
commit 36bc31ed5c
4 changed files with 109 additions and 14 deletions

View file

@ -66,6 +66,12 @@ in
folding = mkEnableOption "Enable tree-sitter based folding";
};
grammarPackages = mkOption {
type = with types; listOf package;
default = pkgs.tree-sitter.allGrammars;
description = "Grammar packages to install";
};
};
config =
@ -107,7 +113,7 @@ in
'';
extraPlugins = with pkgs; if cfg.nixGrammars then
[ (vimPlugins.nvim-treesitter.withPlugins (_: tree-sitter.allGrammars)) ]
[ (vimPlugins.nvim-treesitter.withPlugins (_: cfg.grammarPackages)) ]
else [ vimPlugins.nvim-treesitter ];
extraPackages = [ pkgs.tree-sitter pkgs.nodejs ];