fix(nvim): correctly handle netrw behavior in neo-tree
This commit is contained in:
parent
6a3b8f6de3
commit
2bb0a62535
@ -19,7 +19,7 @@ return {
|
|||||||
callback = function()
|
callback = function()
|
||||||
local f = vim.fn.expand("%:p")
|
local f = vim.fn.expand("%:p")
|
||||||
if vim.fn.isdirectory(f) ~= 0 then
|
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
|
-- neo-tree is loaded now, delete the init autocmd
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -27,8 +27,6 @@ return {
|
|||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
opts = function()
|
opts = function()
|
||||||
vim.g.neo_tree_remove_legacy_commands = 1
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
sources = {
|
sources = {
|
||||||
"filesystem",
|
"filesystem",
|
||||||
@ -52,7 +50,6 @@ return {
|
|||||||
},
|
},
|
||||||
filesystem = {
|
filesystem = {
|
||||||
use_libuv_file_watcher = true,
|
use_libuv_file_watcher = true,
|
||||||
hijack_netrw_behavior = "open_current",
|
|
||||||
},
|
},
|
||||||
window = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
|
Loading…
Reference in New Issue
Block a user