plugins/visual-whitespace: init module

This commit is contained in:
Austin Horstman 2025-05-07 22:45:09 -05:00
parent e656464da4
commit 1158bb13f2
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,19 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "visual-whitespace";
packPathName = "visual-whitespace.nvim";
package = "visual-whitespace-nvim";
maintainers = [ lib.maintainers.khaneliman ];
settingsExample = {
enabled = true;
match_types = {
space = true;
tab = true;
nbsp = true;
lead = true;
trail = true;
};
};
}

View file

@ -0,0 +1,41 @@
{
empty = {
plugins.visual-whitespace.enable = true;
};
defaults = {
plugins.visual-whitespace = {
enable = true;
settings = {
enabled = true;
highlight = {
link = "Visual";
default = true;
};
match_types = {
space = true;
tab = true;
nbsp = true;
lead = false;
trail = false;
};
list_chars = {
space = "·";
tab = "";
nbsp = "";
lead = "";
trail = "";
};
fileformat_chars = {
unix = "";
mac = "";
dos = "";
};
ignore = {
filetypes = { };
buftypes = { };
};
};
};
};
}