nix-community.nixvim/plugins/by-name/cornelis/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.4 KiB
Nix
Raw Normal View History

2025-04-07 22:59:49 +02:00
{ lib, ... }:
2025-01-11 02:02:25 +01:00
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkVimPlugin {
name = "cornelis";
globalPrefix = "cornelis_";
2025-06-18 02:42:47 +03:00
description = ''
Agda programming language support for Neovim.
Emacs [agda-mode](https://agda.readthedocs.io/en/latest/tools/emacs-mode.html) for Neovim.
'';
2025-01-11 02:02:25 +01:00
maintainers = [ lib.maintainers.GaetanLepage ];
dependencies = [ "cornelis" ];
2025-04-07 22:59:49 +02:00
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "cornelis";
packageName = "cornelis";
})
];
2025-01-11 02:02:25 +01:00
settingsOptions = {
use_global_binary = defaultNullOpts.mkFlagInt 0 ''
Whether to use global binary instead of stack.
'';
agda_prefix = defaultNullOpts.mkStr' {
pluginDefault = "<localleader>";
example = "<Tab>";
description = ''
Prefix used for agda keybindings.
'';
};
no_agda_input = defaultNullOpts.mkFlagInt 0 ''
Disable the default keybindings.
'';
bind_input_hook = defaultNullOpts.mkStr' {
pluginDefault = null;
example = "MyCustomHook";
description = ''
If you'd prefer to manage agda-input entirely on your own (perhaps in a snippet system), you
can customize the bind input hook.
'';
};
};
settingsExample = {
use_global_binary = 1;
agda_prefix = "<Tab>";
no_agda_input = 1;
bind_input_hook = "MyCustomHook";
};
}