nix-community.nixvim/plugins/by-name/cornelis/default.nix
osbm a41559f093
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
treewide: add plugin descriptions
2025-06-24 06:10:11 +00:00

58 lines
1.4 KiB
Nix

{ lib, ... }:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkVimPlugin {
name = "cornelis";
globalPrefix = "cornelis_";
description = ''
Agda programming language support for Neovim.
Emacs [agda-mode](https://agda.readthedocs.io/en/latest/tools/emacs-mode.html) for Neovim.
'';
maintainers = [ lib.maintainers.GaetanLepage ];
dependencies = [ "cornelis" ];
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "cornelis";
packageName = "cornelis";
})
];
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";
};
}