nvim-tree: added new option (#54)

This commit is contained in:
Alexander Nortung 2022-11-07 17:10:18 +01:00 committed by GitHub
parent 3849a1de9a
commit 03a80e3da1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,11 +48,17 @@ in
description = "Hijack cursor";
};
# TODO: change this to it's new definition sync_root_with_cwd
updateCwd = mkOption {
type = types.nullOr types.bool;
default = null;
};
respectBufCwd = mkOption {
type = types.nullOr types.bool;
default = null;
};
updateToBufDir = {
enable = mkOption {
type = types.nullOr types.bool;
@ -94,6 +100,7 @@ in
default = null;
};
# TODO: change this to it's new definition update_root
updateCwd = mkOption {
type = types.nullOr types.bool;
default = null;
@ -214,6 +221,7 @@ in
open_on_tab = cfg.openOnTab;
hijack_cursor = cfg.hijackCursor;
update_cwd = cfg.updateCwd;
respect_buf_cwd = cfg.respectBufCwd;
update_to_buf_dir = {
enable = cfg.updateToBufDir.enable;
auto_open = cfg.updateToBufDir.autoOpen;