mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
25 lines
363 B
Nix
25 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 ''
|
|
'';
|
|
};
|
|
}
|