From 2bb0a62535f558031e4219e2fe077cc3d7736875 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 9 Feb 2024 02:58:48 -0600 Subject: [PATCH] fix(nvim): correctly handle netrw behavior in neo-tree --- dots/.config/nvim/lua/plugins/configs/neo-tree.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/neo-tree.lua b/dots/.config/nvim/lua/plugins/configs/neo-tree.lua index 5d2c7b80..3a384f8f 100644 --- a/dots/.config/nvim/lua/plugins/configs/neo-tree.lua +++ b/dots/.config/nvim/lua/plugins/configs/neo-tree.lua @@ -19,7 +19,7 @@ return { callback = function() local f = vim.fn.expand("%:p") if vim.fn.isdirectory(f) ~= 0 then - vim.cmd("Neotree current dir=" .. f) + require("neo-tree") -- neo-tree is loaded now, delete the init autocmd return true end @@ -27,8 +27,6 @@ return { }) end, opts = function() - vim.g.neo_tree_remove_legacy_commands = 1 - return { sources = { "filesystem", @@ -52,7 +50,6 @@ return { }, filesystem = { use_libuv_file_watcher = true, - hijack_netrw_behavior = "open_current", }, window = { mappings = {