Skip to content

Commit

Permalink
neo-tree: hijack netrw with neo-tree
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Nov 18, 2023
1 parent ab71818 commit 48cf580
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/tools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ register("nvim-neo-tree/neo-tree.nvim", {
return
end

vim.cmd("Neotree " .. first_arg)
require("neo-tree.setup.netrw").hijack()
end)
)
end,
Expand All @@ -67,6 +67,9 @@ register("nvim-neo-tree/neo-tree.nvim", {
"git_status",
"document_symbols",
},
filesystem = {
hijack_netrw_behavior = "open_current",
},
open_files_do_not_replace_types = {
"terminal",
"trouble",
Expand Down

0 comments on commit 48cf580

Please sign in to comment.