Files
dotFiles/.config/nvim/lua/lilJ/plugins/oil.lua
Kulvir Singh d50d1e73e2 oil
2024-12-20 21:44:08 +05:30

35 lines
997 B
Lua

return {
"stevearc/oil.nvim",
opts = {},
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("oil").setup {
default_file_explorer = true,
delete_to_trash = true,
skip_confirm_for_simple_edits = true,
view_options = {
show_hidden = true,
natural_order = true,
is_always_hidden = function(name, _)
return name == ".." or name == ".git"
end,
},
float = {
padding = 2,
max_width = 90,
max_height = 0,
},
win_options = {
wrap = true,
winblend = 0,
},
keymaps = {
["<C-h>"] = false,
["q"] = "actions.close",
},
}
vim.keymap.set("n", "<space>n", "<CMD>Oil<CR>", { desc = "open parent directory" })
end,
}