diff --git a/plugins/by-name/colorful-winsep/default.nix b/plugins/by-name/colorful-winsep/default.nix new file mode 100644 index 00000000..1cacdcda --- /dev/null +++ b/plugins/by-name/colorful-winsep/default.nix @@ -0,0 +1,31 @@ +{ lib, ... }: +lib.nixvim.plugins.mkNeovimPlugin { + name = "colorful-winsep"; + packPathName = "colorful-winsep.nvim"; + package = "colorful-winsep-nvim"; + + maintainers = [ lib.maintainers.saygo-png ]; + + settingsExample = { + hi = { + bg = "#7d8618"; + fg = "#b8bb26"; + }; + only_line_seq = true; + no_exec_files = [ + "packer" + "TelescopePrompt" + "mason" + "CompetiTest" + "NvimTree" + ]; + symbols = [ + "━" + "┃" + "┏" + "┓" + "┗" + "┛" + ]; + }; +} diff --git a/tests/test-sources/plugins/by-name/colorful-winsep/default.nix b/tests/test-sources/plugins/by-name/colorful-winsep/default.nix new file mode 100644 index 00000000..095832fc --- /dev/null +++ b/tests/test-sources/plugins/by-name/colorful-winsep/default.nix @@ -0,0 +1,90 @@ +{ + empty = { + plugins.colorful-winsep.enable = true; + }; + + defaults = { + plugins.colorful-winsep = { + enable = true; + settings = { + symbols = [ + "━" + "┃" + "┏" + "┓" + "┗" + "┛" + ]; + no_exec_files = [ + "packer" + "TelescopePrompt" + "mason" + "CompetiTest" + ]; + hi = { + fg = "#957CC6"; + bg.__raw = ''vim.api.nvim_get_hl_by_name("Normal", true)["background"]''; + }; + events = [ + "WinEnter" + "WinResized" + "SessionLoadPost" + ]; + smooth = true; + exponential_smoothing = true; + only_line_seq = true; + anchor = { + left = { + height = 1; + x = -1; + y = -1; + }; + right = { + height = 1; + x = -1; + y = 0; + }; + up = { + width = 0; + x = -1; + y = 0; + }; + bottom = { + width = 0; + x = 1; + y = 0; + }; + }; + light_pollution.__raw = "function(lines) end"; + }; + }; + }; + + example = { + plugins.colorful-winsep = { + enable = true; + settings = { + hi = { + bg = "#7d8618"; + fg = "#b8bb26"; + }; + only_line_seq = true; + no_exec_files = [ + "packer" + "TelescopePrompt" + "mason" + "CompetiTest" + "NvimTree" + ]; + symbols = [ + "━" + "┃" + "┏" + "┓" + "┗" + "┛" + ]; + }; + }; + }; +}