Files
nvim/lua/plugins/files.lua
T
johannes 9b0446c5f6 feat: initial commit
- basic config according to spec
2026-11-05 15:04:29 +01:00

17 lines
497 B
Lua

return {
{
"stevearc/oil.nvim",
cmd = "Oil",
keys = { { "-", "<cmd>Oil<cr>", desc = "Open parent directory" } },
init = function()
-- Load at startup only when nvim was opened on a directory.
local arg = vim.fn.argc() == 1 and vim.fn.argv(0)
local stat = arg and vim.uv.fs_stat(arg)
if stat and stat.type == "directory" then
require("lazy").load({ plugins = { "oil.nvim" } })
end
end,
opts = { default_file_explorer = true },
},
}