mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
nvim-tree: added new option (#54)
This commit is contained in:
parent
3849a1de9a
commit
03a80e3da1
1 changed files with 8 additions and 0 deletions
|
@ -48,11 +48,17 @@ in
|
||||||
description = "Hijack cursor";
|
description = "Hijack cursor";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: change this to it's new definition sync_root_with_cwd
|
||||||
updateCwd = mkOption {
|
updateCwd = mkOption {
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
respectBufCwd = mkOption {
|
||||||
|
type = types.nullOr types.bool;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
updateToBufDir = {
|
updateToBufDir = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
|
@ -94,6 +100,7 @@ in
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: change this to it's new definition update_root
|
||||||
updateCwd = mkOption {
|
updateCwd = mkOption {
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = null;
|
default = null;
|
||||||
|
@ -214,6 +221,7 @@ in
|
||||||
open_on_tab = cfg.openOnTab;
|
open_on_tab = cfg.openOnTab;
|
||||||
hijack_cursor = cfg.hijackCursor;
|
hijack_cursor = cfg.hijackCursor;
|
||||||
update_cwd = cfg.updateCwd;
|
update_cwd = cfg.updateCwd;
|
||||||
|
respect_buf_cwd = cfg.respectBufCwd;
|
||||||
update_to_buf_dir = {
|
update_to_buf_dir = {
|
||||||
enable = cfg.updateToBufDir.enable;
|
enable = cfg.updateToBufDir.enable;
|
||||||
auto_open = cfg.updateToBufDir.autoOpen;
|
auto_open = cfg.updateToBufDir.autoOpen;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue