summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/plugins/oil.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/oil.lua b/.config/nvim/lua/plugins/oil.lua
index 4871ddb..0dddb2f 100644
--- a/.config/nvim/lua/plugins/oil.lua
+++ b/.config/nvim/lua/plugins/oil.lua
@@ -12,7 +12,7 @@ return {
['<C-l>'] = false,
['<C-k>'] = false,
['<C-j>'] = false,
- ["<C-t>"] = false,
+ ['<C-t>'] = false,
['<M-h>'] = 'actions.select_split',
['<M-v>'] = 'actions.select_vsplit',
['<C-r>'] = 'actions.refresh',
@@ -34,6 +34,13 @@ return {
-- Set to "unmodified" to only save unmodified buffers
autosave_changes = false,
},
+
+ -- Buffer-local options to use for oil buffers
+ buf_options = {
+ buflisted = true,
+ bufhidden = 'hide',
+ },
+ cleanup_delay_ms = false,
},
cmd = 'Oil',
event = 'VimEnter',