mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
feat: add icon picker to utils & install deps
This commit is contained in:
parent
fbccfa48e4
commit
6572964523
4 changed files with 106 additions and 8 deletions
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./colorizer.nix
|
||||
./venn.nix
|
||||
./icon-picker.nix
|
||||
];
|
||||
}
|
||||
|
|
27
modules/utility/icon-picker.nix
Normal file
27
modules/utility/icon-picker.nix
Normal 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
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue