mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 04:14:28 +02:00
plugins/colorizer: rename, switch to mkNeovimPlugin
This commit is contained in:
parent
4b5364a66b
commit
f2a991ae8c
4 changed files with 313 additions and 204 deletions
62
tests/test-sources/plugins/by-name/colorizer/default.nix
Normal file
62
tests/test-sources/plugins/by-name/colorizer/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.colorizer.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.colorizer = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
filetypes = { };
|
||||
user_default_options = {
|
||||
RGB = true;
|
||||
RRGGBB = true;
|
||||
names = true;
|
||||
RRGGBBAA = false;
|
||||
AARRGGBB = false;
|
||||
rgb_fn = false;
|
||||
hsl_fn = false;
|
||||
css = false;
|
||||
css_fn = false;
|
||||
mode = "background";
|
||||
tailwind = false;
|
||||
sass = {
|
||||
enable = false;
|
||||
parsers = [ "css" ];
|
||||
};
|
||||
virtualtext = "■";
|
||||
virtualtext_inline = false;
|
||||
virtualtext_mode = "foreground";
|
||||
always_update = false;
|
||||
};
|
||||
buftypes = { };
|
||||
user_commands = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.colorizer = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
filetypes = {
|
||||
__unkeyed-1 = "*";
|
||||
__unkeyed-2 = "!vim";
|
||||
css.rgb_fn = true;
|
||||
html.names = false;
|
||||
};
|
||||
user_default_options = {
|
||||
mode = "virtualtext";
|
||||
names = false;
|
||||
virtualtext = "■ ";
|
||||
};
|
||||
user_commands = [
|
||||
"ColorizerToggle"
|
||||
"ColorizerReloadAllBuffers"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.nvim-colorizer.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue