neo-tree: add hijack netrw

This commit is contained in:
Ching Pei Yang 2024-11-08 17:55:52 +01:00
commit 9f768d89b0
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
2 changed files with 31 additions and 1 deletions

View file

@ -1,5 +1,5 @@
{lib, ...}: let
inherit (lib.types) bool str int submodule enum either listOf;
inherit (lib.types) bool str enum either listOf;
inherit (lib.options) mkOption mkEnableOption literalExpression;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
@ -150,6 +150,14 @@ in {
A list of filetypes that should not be replaced when opening a file
'';
};
filesystem = {
hijack_netrw_behavior = mkOption {
type = enum ["disabled" "open_default" "open_current"];
default = "open_default";
description = "Hijack Netrw behavior";
};
};
};
};
}