mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-map: init
This commit is contained in:
parent
a412c12e81
commit
e948015920
2 changed files with 56 additions and 0 deletions
26
plugins/by-name/mini-map/default.nix
Normal file
26
plugins/by-name/mini-map/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-map";
|
||||||
|
moduleName = "mini.map";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
integrations = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
|
||||||
|
symbols = {
|
||||||
|
encode = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
scroll_line = "█";
|
||||||
|
scroll_view = "┃";
|
||||||
|
};
|
||||||
|
|
||||||
|
window = {
|
||||||
|
focusable = false;
|
||||||
|
side = "right";
|
||||||
|
show_integration_count = true;
|
||||||
|
width = 10;
|
||||||
|
winblend = 25;
|
||||||
|
zindex = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
30
tests/test-sources/plugins/by-name/mini-map/default.nix
Normal file
30
tests/test-sources/plugins/by-name/mini-map/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-map.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-map = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
integrations = lib.nixvim.mkRaw "nil";
|
||||||
|
|
||||||
|
symbols = {
|
||||||
|
encode = lib.nixvim.mkRaw "nil";
|
||||||
|
scroll_line = "█";
|
||||||
|
scroll_view = "┃";
|
||||||
|
};
|
||||||
|
|
||||||
|
window = {
|
||||||
|
focusable = false;
|
||||||
|
side = "right";
|
||||||
|
show_integration_count = true;
|
||||||
|
width = 10;
|
||||||
|
winblend = 25;
|
||||||
|
zindex = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue