feat: add icon picker to utils & install deps

This commit is contained in:
NotAShelf 2023-02-05 23:57:19 +03:00
commit 6572964523
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 106 additions and 8 deletions

View file

@ -2,5 +2,6 @@ _: {
imports = [
./colorizer.nix
./venn.nix
./icon-picker.nix
];
}

View file

@ -0,0 +1,27 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.utility.icon-picker;
in {
options.vim.utility.icon-picker = {
enable = mkEnableOption "Nerdfonts icon picker for nvim";
};
config = mkIf (cfg.enable) {
vim.startPlugins = [
"icon-picker-nvim"
"dressing-nvim"
];
vim.luaConfigRC.icon-picker = nvim.dag.entryAnywhere ''
require("icon-picker").setup({
disable_legacy_commands = true
})
'';
};
}