From 6df31f28065f03c7af890b3ac6388ce2ccb3eb88 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 20 Mar 2025 08:48:36 -0700 Subject: [PATCH] floating oil --- lua/custom/plugins/oil.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, }