mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +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 ];
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue