dotfiles/.config/nvim/lua/null/plugins/file-explorer.lua
Ahmad Ansori Palembani fb1562f804
chore: Disable lazy for oil.nvim
I need it to overwrite netrw, I can't figure out how to do that with
lazyload atm
2024-04-24 11:19:27 +07:00

32 lines
674 B
Lua

return {
{
"nvim-neo-tree/neo-tree.nvim", -- I'll be using oil.nvim, but for better visual I'll keep this
keys = {
{ "<C-n>", "<cmd>Neotree toggle<cr>", desc = "NeoTree" },
},
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
config = function ()
require("neo-tree").setup({
close_if_last_window = true,
})
end,
},
{
"stevearc/oil.nvim",
lazy = false,
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function ()
require("oil").setup({
default_file_explorer = true,
keymaps = {
["q"] = "actions.close",
},
})
end
},
}