mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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:
parent
6b0c5d594a
commit
ae2b9bd445
3 changed files with 25 additions and 1 deletions
11
plugins/by-name/idris2/default.nix
Normal file
11
plugins/by-name/idris2/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
helpers,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
|
name = "idris2";
|
||||||
|
originalName = "idris2";
|
||||||
|
package = "idris2-nvim";
|
||||||
|
maintainers = [ lib.maintainers.mitchmindtree ];
|
||||||
|
}
|
|
@ -256,12 +256,20 @@ let
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "idris2-lsp";
|
name = "idris2-lsp";
|
||||||
description = "Idris 2 Language Server";
|
description = ''
|
||||||
|
Idris 2 Language Server.
|
||||||
|
Enabling this also enables the required `idris2` plugin.
|
||||||
|
'';
|
||||||
serverName = "idris2_lsp";
|
serverName = "idris2_lsp";
|
||||||
package = [
|
package = [
|
||||||
"idris2Packages"
|
"idris2Packages"
|
||||||
"idris2Lsp"
|
"idris2Lsp"
|
||||||
];
|
];
|
||||||
|
extraConfig =
|
||||||
|
cfg:
|
||||||
|
mkIf cfg.enable {
|
||||||
|
plugins.idris2.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "intelephense";
|
name = "intelephense";
|
||||||
|
|
5
tests/test-sources/plugins/by-name/idris2/default.nix
Normal file
5
tests/test-sources/plugins/by-name/idris2/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.idris2.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue