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

plugins/cybu: init

This commit is contained in:
Fovir 2025-10-08 15:20:48 +08:00 committed by Gaétan Lepage
parent 39443b9f57
commit a3792ed5fd
2 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "cybu";
package = "cybu-nvim";
maintainers = [ lib.maintainers.Fovir ];
settingsExample = {
behavior = {
mode = {
default = {
switch = "immediate";
view = "rolling";
};
last_used = {
switch = "on_close";
update_on = "buf_enter";
view = "paging";
};
};
};
display_time = 750;
style.devicons.enabled = false;
};
}

View file

@ -0,0 +1,97 @@
{ lib, ... }:
{
empty = {
plugins.cybu = {
enable = true;
settings.style.devicons.enabled = false;
};
};
example = {
plugins.cybu = {
enable = true;
settings = {
style.devicons.enabled = false;
behavior = {
mode = {
default = {
switch = "immediate";
view = "rolling";
};
last_used = {
switch = "on_close";
view = "paging";
update_on = "buf_enter";
};
};
};
display_time = 750;
};
};
};
defaults = {
plugins.cybu = {
enable = true;
settings = {
position = {
relative_to = "win";
anchor = "topcenter";
vertical_offset = 10;
horizontal_offset = 0;
max_win_height = 5;
max_win_width = 0.5;
};
style = {
path = "relative";
path_abbreviation = "none";
border = "rounded";
separator = " ";
prefix = "";
padding = 1;
hide_buffer_id = true;
devicons = {
enabled = false;
colored = true;
truncate = true;
};
highlights = {
current_buffer = "CybuFocus";
adjacent_buffers = "CybuAdjacent";
background = "CybuBackground";
border = "CybuBorder";
};
};
behavior = {
mode = {
default = {
switch = "immediate";
view = "rolling";
};
last_used = {
switch = "on_close";
view = "paging";
update_on = "buf_enter";
};
auto = {
view = "rolling";
};
};
show_on_autocmd = false;
};
display_time = 750;
exclude = [
"neo-tree"
"fugitive"
"qf"
];
filter = {
unlisted = true;
};
fallback = lib.nixvim.mkRaw "function() end";
};
};
};
}