feat: add nvimtree keybindings

This commit is contained in:
n3oney 2023-04-12 17:17:23 +02:00
commit f1f0144c62
No known key found for this signature in database
GPG key ID: C786693DE727850E
3 changed files with 36 additions and 14 deletions

View file

@ -1,6 +1,5 @@
{
pkgs,
config,
lib,
...
}:
@ -13,6 +12,29 @@ with builtins; {
description = "Enable nvim-tree-lua";
};
mappings = {
toggle = mkOption {
type = types.nullOr types.str;
default = "<C-n>";
description = "Toggle NvimTree";
};
refresh = mkOption {
type = types.nullOr types.str;
default = "<leader>tr";
description = "Refresh NvimTree";
};
findFile = mkOption {
type = types.nullOr types.str;
default = "<leader>tg";
description = "Find file in NvimTree";
};
focus = mkOption {
type = types.nullOr types.str;
default = "<leader>tf";
description = "Focus NvimTree";
};
};
sortBy = mkOption {
default = "name";
description = "Sort by name or extension";