Skip to content

Commit

Permalink
fix(filesystem): do netrw hijack if needed after lazy load (#907)
Browse files Browse the repository at this point in the history
closes #828
  • Loading branch information
pysan3 committed May 4, 2023
1 parent 4b755ea commit 8a60083
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neo-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ M.setup = function(config, is_auto_config)
local netrw = require("neo-tree.setup.netrw")
if not is_auto_config and netrw.get_hijack_netrw_behavior() ~= "disabled" then
vim.cmd("silent! autocmd! FileExplorer *")
netrw.hijack()
end
end

Expand Down

0 comments on commit 8a60083

Please sign in to comment.