utility/mkdir-nvim: init

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

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`
'';
}