diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua index 7dbc67a9..9c44cacd 100644 --- a/lua/custom/plugins/oil.lua +++ b/lua/custom/plugins/oil.lua @@ -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', '-', 'Oil', { desc = 'Open parent directory' }) + vim.keymap.set('n', '-', 'Oil --float', { desc = 'Open parent directory' }) end, }