floating oil

This commit is contained in:
Andrew 2025-03-20 08:48:36 -07:00
parent 0ad482bc20
commit 6df31f2806
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,9 @@ return {
delete_to_trash = true,
skip_confirm_for_simple_edits = true,
float = {
max_width = 0.7,
},
view_options = {
show_hidden = true,
},
@ -17,6 +20,6 @@ return {
-- 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<CR>', { desc = 'Open parent directory' })
vim.keymap.set('n', '-', '<CMD>Oil --float<CR>', { desc = 'Open parent directory' })
end,
}