mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-11 13:16:32 +00:00
modules: start breaking down core modules; simplify tree structure
This commit is contained in:
parent
4703ed7731
commit
370913e827
242 changed files with 178 additions and 124 deletions
22
modules/plugins/utility/icon-picker/config.nix
Normal file
22
modules/plugins/utility/icon-picker/config.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf nvim;
|
||||
|
||||
cfg = config.vim.utility.icon-picker;
|
||||
in {
|
||||
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
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
||||
6
modules/plugins/utility/icon-picker/default.nix
Normal file
6
modules/plugins/utility/icon-picker/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./icon-picker.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
||||
7
modules/plugins/utility/icon-picker/icon-picker.nix
Normal file
7
modules/plugins/utility/icon-picker/icon-picker.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in {
|
||||
options.vim.utility.icon-picker = {
|
||||
enable = mkEnableOption "nerdfonts icon picker for nvim";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue