From 03a80e3da16f9e42d06b7d0ad1d6a3606948c2d0 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Mon, 7 Nov 2022 17:10:18 +0100 Subject: [PATCH] nvim-tree: added new option (#54) --- plugins/utils/nvim-tree.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/utils/nvim-tree.nix b/plugins/utils/nvim-tree.nix index 697dec06..60161544 100644 --- a/plugins/utils/nvim-tree.nix +++ b/plugins/utils/nvim-tree.nix @@ -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;