mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/files: init
This commit is contained in:
parent
3533d5bcbd
commit
7472cac221
7 changed files with 62 additions and 0 deletions
|
@ -68,6 +68,7 @@
|
||||||
- `mini.diff`
|
- `mini.diff`
|
||||||
- `mini.doc`
|
- `mini.doc`
|
||||||
- `mini.extra`
|
- `mini.extra`
|
||||||
|
- `mini.files`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1160,6 +1160,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-files": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736535707,
|
||||||
|
"narHash": "sha256-UHW78m4BiYMMrABwdkyyzQUENgQrVFbWJnmNdRMtr0w=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.files",
|
||||||
|
"rev": "d0f03a5c38836fd2cce3dc80734124959002078c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.files",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2370,6 +2386,7 @@
|
||||||
"plugin-mini-diff": "plugin-mini-diff",
|
"plugin-mini-diff": "plugin-mini-diff",
|
||||||
"plugin-mini-doc": "plugin-mini-doc",
|
"plugin-mini-doc": "plugin-mini-doc",
|
||||||
"plugin-mini-extra": "plugin-mini-extra",
|
"plugin-mini-extra": "plugin-mini-extra",
|
||||||
|
"plugin-mini-files": "plugin-mini-files",
|
||||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||||
|
|
|
@ -815,5 +815,10 @@
|
||||||
url = "github:echasnovski/mini.extra";
|
url = "github:echasnovski/mini.extra";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-files = {
|
||||||
|
url = "github:echasnovski/mini.files";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,5 +14,6 @@
|
||||||
./diff
|
./diff
|
||||||
./doc
|
./doc
|
||||||
./extra
|
./extra
|
||||||
|
./files
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
modules/plugins/mini/files/config.nix
Normal file
19
modules/plugins/mini/files/config.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
|
cfg = config.vim.mini.files;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-files"];
|
||||||
|
|
||||||
|
pluginRC.mini-files = entryAnywhere ''
|
||||||
|
require("mini.files").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/files/default.nix
Normal file
6
modules/plugins/mini/files/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./files.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
13
modules/plugins/mini/files/files.nix
Normal file
13
modules/plugins/mini/files/files.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.files = {
|
||||||
|
enable = mkEnableOption "mini.files";
|
||||||
|
setupOpts = mkPluginSetupOption "mini.files" {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue