mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
nixvim: migrate colorizer to native nixvim module
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
@@ -1,18 +1,23 @@
|
||||
{pkgs, ...}: {
|
||||
programs.nixvim = {
|
||||
extraPlugins = [pkgs.vimPlugins.nvim-colorizer-lua];
|
||||
extraConfigLua = ''
|
||||
require("colorizer").setup({
|
||||
filetypes = { "*" },
|
||||
user_default_options = {
|
||||
RGB = true,
|
||||
RRGGBB = true,
|
||||
names = false,
|
||||
css = true,
|
||||
tailwind = true,
|
||||
mode = "background",
|
||||
},
|
||||
})
|
||||
'';
|
||||
{...}: {
|
||||
programs.nixvim.plugins.colorizer = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
filetypes = ["*" "!markdown"];
|
||||
user_commands = true;
|
||||
|
||||
options = {
|
||||
parsers = {
|
||||
css = true;
|
||||
tailwind = {
|
||||
enable = true;
|
||||
lsp = true;
|
||||
update_names = true;
|
||||
};
|
||||
};
|
||||
|
||||
display.mode = "background";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user