mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 09:49:49 +01: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
|
||
|
})
|
||
|
'';
|
||
|
};
|
||
|
}
|