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 ];

View file

@ -26,7 +26,7 @@ let
name = "elixirls";
description = "Enable elixirls";
packages = [ ];
cmd = ["${pkgs.elixir_ls}/bin/elixir-ls"];
cmd = [ "${pkgs.elixir_ls}/bin/elixir-ls" ];
}
{
name = "gdscript";
@ -78,6 +78,11 @@ let
name = "zls";
description = "Enable zls, for Zig.";
}
{
name = "hls";
description = "Enable haskell language server";
packages = [ pkgs.haskell-language-server ];
}
];
in
{