kickstart.nvim/lua/custom/plugins/oil.lua

26 lines
627 B
Lua

return {
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {
default_file_explorer = true,
delete_to_trash = true,
skip_confirm_for_simple_edits = true,
float = {
max_width = 0.7,
},
view_options = {
show_hidden = true,
},
},
-- Optional dependencies
dependencies = { { 'echasnovski/mini.icons', opts = {} } },
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
lazy = false,
init = function()
vim.keymap.set('n', '-', '<CMD>Oil --float<CR>', { desc = 'Open parent directory' })
end,
}