aboutsummaryrefslogtreecommitdiff
path: root/lua/config/nvim-tree.lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2024-01-07 15:22:13 +0100
committerjdhao <jdhao@hotmail.com>2024-01-07 15:24:47 +0100
commit841650868606299bdebd09c9cdca5c9604ab9f09 (patch)
treee8f83bee046a270160eeb3aab708aad6c65a515c /lua/config/nvim-tree.lua
parentdf9491b05bd3c51366185a653850a72acf2f16cb (diff)
Enable nvim-tree to open dir during startup
Now when you open a directory when starting nvim, nvim-tree will be opened to handle the directory correctly, see also issue #257.
Diffstat (limited to 'lua/config/nvim-tree.lua')
-rw-r--r--lua/config/nvim-tree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua
index 4171f1b..6bf653d 100644
--- a/lua/config/nvim-tree.lua
+++ b/lua/config/nvim-tree.lua
@@ -4,8 +4,8 @@ local nvim_tree = require("nvim-tree")
nvim_tree.setup {
auto_reload_on_write = true,
disable_netrw = false,
- hijack_cursor = false,
hijack_netrw = true,
+ hijack_cursor = false,
hijack_unnamed_buffer_when_opening = false,
open_on_tab = false,
sort_by = "name",