mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-14 04:51:11 +01:00
plugins/mini-cmdline: init
This commit is contained in:
parent
abd3e966f3
commit
f61667b37e
2 changed files with 61 additions and 0 deletions
13
plugins/by-name/mini-cmdline/default.nix
Normal file
13
plugins/by-name/mini-cmdline/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
48
tests/test-sources/plugins/by-name/mini-cmdline/default.nix
Normal file
48
tests/test-sources/plugins/by-name/mini-cmdline/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue