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