fix(nvim): correctly handle netrw behavior in neo-tree

This commit is contained in:
Price Hiller 2024-02-09 02:58:48 -06:00
parent 6a3b8f6de3
commit 2bb0a62535
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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 = {