mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
lsp: add haskell language server
This commit is contained in:
parent
bc045bd50a
commit
36bc31ed5c
4 changed files with 109 additions and 14 deletions
|
@ -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 ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue