use oil instead of neotree

This commit is contained in:
Pablu
2025-11-12 14:31:06 +01:00
parent d225638e1f
commit 4acf9a7852
4 changed files with 14 additions and 38 deletions

View File

@@ -1,34 +0,0 @@
return {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
config = function()
require("neo-tree").setup({
event_handlers = {
{
event = "file_opened",
handler = function(file_path)
require("neo-tree.command").execute({ action = "close" })
end,
},
},
filesystem = {
filtered_items = {
visible = false,
show_hidden_count = true,
hide_dotfiles = false,
hide_gitignored = true,
hide_hidden = true,
hide_by_name = {
'.git',
'bin',
},
},
},
})
end,
}

10
lua/plugins/oil.lua Normal file
View File

@@ -0,0 +1,10 @@
return {
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
dependencies = { { "nvim-mini/mini.icons", opts = {} } },
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
lazy = false,
}