utility/mkdir-nvim: init

This commit is contained in:
alfarel 2025-02-25 21:03:46 -05:00 committed by raf
parent 27978c7186
commit 85ca2bc11f
6 changed files with 40 additions and 0 deletions

View file

@ -200,6 +200,8 @@
[alfarel](https://github.com/alfarelcynthesis):
- Add missing `yazi.nvim` dependency (`snacks.nvim`).
- Add [mkdir.nvim](https://github.com/jghauser/mkdir.nvim) plugin
for automatic creation of parent directories when editing a nested file.
[TheColorman](https://github.com/TheColorman)

View file

@ -8,6 +8,7 @@
./icon-picker
./images
./leetcode-nvim
./mkdir
./motion
./multicursors
./new-file-template

View file

@ -0,0 +1,12 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.utility.mkdir;
in {
vim = mkIf cfg.enable {
startPlugins = ["mkdir-nvim"];
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./config.nix
./mkdir.nix
];
}

View file

@ -0,0 +1,7 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.vim.utility.mkdir.enable = mkEnableOption ''
parent directory creation when editing a nested path that does not exist using `mkdir.nvim`
'';
}

View file

@ -1205,6 +1205,18 @@
"url": "https://github.com/wfxr/minimap.vim/archive/57287e2dd28fa3e63276a32d11c729df14741d54.tar.gz",
"hash": "05k4cgcrz0gj92xy685bd4p6nh2jmaywc2f5sw1lap0v685h7n79"
},
"mkdir-nvim": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "jghauser",
"repo": "mkdir.nvim"
},
"branch": "main",
"revision": "c55d1dee4f099528a1853b28bb28caa802eba217",
"url": "https://github.com/jghauser/mkdir.nvim/archive/c55d1dee4f099528a1853b28bb28caa802eba217.tar.gz",
"hash": "0zpyvkbw7wfqdxfgidr7zfxqb5ldci4pflx50rsm1hbwai0ybv23"
},
"modes-nvim": {
"type": "Git",
"repository": {