mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-24 04:09:49 +01:00
24 lines
363 B
Nix
24 lines
363 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.utility.colorizer;
|
|
in {
|
|
options.vim.utility.colorizer = {
|
|
enable = mkEnableOption "ccc color picker for neovim";
|
|
};
|
|
|
|
config = mkIf (cfg.enable) {
|
|
vim.startPlugins = [
|
|
"colorizer"
|
|
];
|
|
|
|
vim.configRC.ccc =
|
|
nvim.dag.entryAnywhere ''
|
|
'';
|
|
};
|
|
}
|