1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-12 20:11:08 +01:00

plugins/mini-cmdline: init

This commit is contained in:
Heitor Augusto 2025-12-10 19:29:14 -03:00 committed by Matt Sturgeon
parent abd3e966f3
commit f61667b37e
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "mini-cmdline";
moduleName = "mini.cmdline";
maintainers = [ lib.maintainers.HeitorAugustoLN ];
settingsExample = {
autocomplete.enable = true;
autocorrect.enable = true;
autopeek.enable = true;
};
}

View file

@ -0,0 +1,48 @@
{ lib }:
{
empty = {
plugins.mini-cmdline.enable = true;
};
defaults = {
plugins.mini-cmdline = {
enable = true;
settings = {
autocomplete = {
enable = true;
delay = 0;
predicate = lib.nixvim.mkRaw "nil";
map_arrows = true;
};
autocorrect = {
enable = true;
func = lib.nixvim.mkRaw "nil";
};
autopeek = {
enable = true;
n_context = 1;
window = {
config = lib.nixvim.emptyTable;
statuscolumn = lib.nixvim.mkRaw "nil";
};
};
};
};
};
example = {
plugins.mini-cmdline = {
enable = true;
settings = {
autocomplete.enable = true;
autocorrect.enable = true;
autopeek.enable = true;
};
};
};
}