2023-05-18 14:29:10 +01:00
|
|
|
return {
|
|
|
|
"stevearc/oil.nvim",
|
|
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
|
|
cmd = "Oil",
|
|
|
|
init = function()
|
|
|
|
vim.keymap.set("n", "<leader>o", "<cmd>Oil<cr>")
|
|
|
|
if vim.fn.argc() == 1 then
|
|
|
|
local stat = vim.loop.fs_stat(vim.fn.argv(0))
|
|
|
|
if stat and stat.type == "directory" then require "oil" end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
config = true,
|
|
|
|
opts = {
|
2023-06-11 08:41:00 +01:00
|
|
|
columns = { "icon", "permissions" },
|
|
|
|
view_options = { show_hidden = true },
|
2023-05-18 14:29:10 +01:00
|
|
|
},
|
|
|
|
}
|