plugins/idris2: init

Adds the `idris2` neovim plugin.

Also changes `idris2-lsp` to enable this new `idris2` plugin when
enabled, as it's required for `idris2-lsp` to work at all.
This commit is contained in:
mitchmindtree 2024-09-15 10:56:08 +10:00 committed by nix-infra-bot
parent 6b0c5d594a
commit ae2b9bd445
3 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,11 @@
{
helpers,
lib,
...
}:
helpers.neovim-plugin.mkNeovimPlugin {
name = "idris2";
originalName = "idris2";
package = "idris2-nvim";
maintainers = [ lib.maintainers.mitchmindtree ];
}

View file

@ -256,12 +256,20 @@ let
}
{
name = "idris2-lsp";
description = "Idris 2 Language Server";
description = ''
Idris 2 Language Server.
Enabling this also enables the required `idris2` plugin.
'';
serverName = "idris2_lsp";
package = [
"idris2Packages"
"idris2Lsp"
];
extraConfig =
cfg:
mkIf cfg.enable {
plugins.idris2.enable = lib.mkDefault true;
};
}
{
name = "intelephense";

View file

@ -0,0 +1,5 @@
{
empty = {
plugins.idris2.enable = true;
};
}