mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/visual-whitespace: init module
This commit is contained in:
parent
e656464da4
commit
924e9dd29b
2 changed files with 60 additions and 0 deletions
19
plugins/by-name/visual-whitespace/default.nix
Normal file
19
plugins/by-name/visual-whitespace/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 = { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue