Modules/Neovim: Enable colorizer plugin (highlights color strings in code)
This commit is contained in:
@ -429,18 +429,28 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# colorizer = rec {
|
colorizer = rec {
|
||||||
# name = "colorizer";
|
name = "colorizer";
|
||||||
# pkg = pkgs.vimPlugins.nvim-colorizer-lua;
|
pkg = pkgs.vimPlugins.nvim-colorizer-lua;
|
||||||
# lazy = true;
|
lazy = true;
|
||||||
# event = ["BufReadPost" "BufNewFile"];
|
event = ["BufReadPost" "BufNewFile"];
|
||||||
# config = (mkDefaultConfig name);
|
config = mkDefaultConfig name;
|
||||||
# opts = {
|
|
||||||
# filtetypes = null;
|
# https://github.com/catgoose/nvim-colorizer.lua
|
||||||
# user_default_options = null;
|
opts = {
|
||||||
# buftypes = null;
|
filtetypes = ["*"];
|
||||||
# };
|
user_default_options = {
|
||||||
# };
|
names = false;
|
||||||
|
RGB = true; # #RGB hex codes
|
||||||
|
RGBA = true; # #RGBA hex codes
|
||||||
|
RRGGBB = true; # #RRGGBB hex codes
|
||||||
|
RRGGBBAA = true; # #RRGGBBAA hex codes
|
||||||
|
AARRGGBB = false; # 0xAARRGGBB hex codes
|
||||||
|
rgb_fn = true; # CSS rgb() and rgba() functions
|
||||||
|
hsl_fn = true; # CSS hsl() and hsla() functions
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
_ts-context-commentstring = rec {
|
_ts-context-commentstring = rec {
|
||||||
name = "ts_context_commentstring";
|
name = "ts_context_commentstring";
|
||||||
@ -2023,9 +2033,7 @@ in {
|
|||||||
catppuccin # Colortheme (also add this here to access palettes)
|
catppuccin # Colortheme (also add this here to access palettes)
|
||||||
clangd-extensions # Improved clang LSP support
|
clangd-extensions # Improved clang LSP support
|
||||||
blink-cmp # Fast as fuck auto completion
|
blink-cmp # Fast as fuck auto completion
|
||||||
|
colorizer # Colorize color strings
|
||||||
# colorizer # Colorize color strings # TODO: Only colorize html/css/scss/sass/js
|
|
||||||
|
|
||||||
comment # Toggle line- or block-comments
|
comment # Toggle line- or block-comments
|
||||||
conform # Auto formatting on save
|
conform # Auto formatting on save
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user