From 7d7b1053e295156f0a0991e7e00f9e2976d1725d Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Wed, 5 Apr 2023 17:15:16 -0500 Subject: [PATCH] Use Neotree as file browser when opening directories --- config/nvim/lua/plugins/neotree.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/nvim/lua/plugins/neotree.lua b/config/nvim/lua/plugins/neotree.lua index d316f80..0f5b281 100644 --- a/config/nvim/lua/plugins/neotree.lua +++ b/config/nvim/lua/plugins/neotree.lua @@ -5,5 +5,14 @@ return { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons", "MunifTanjim/nui.nvim", - } + }, + + config = function () + -- Unless you are still migrating, remove the deprecated commands from v1.x + vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) + + require("neo-tree").setup({ + hijack_netrw_behavior = "open_default" + }) + end }