diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua new file mode 100644 index 0000000..a75f101 --- /dev/null +++ b/lua/plugins/oil.lua @@ -0,0 +1,31 @@ +return { + 'stevearc/oil.nvim', + opts = { + keymaps = { + ['g?'] = 'actions.show_help', + [''] = 'actions.select', + [''] = 'actions.select_vsplit', + [''] = 'actions.select_split', + [''] = 'actions.select_tab', + [''] = 'actions.preview', + [''] = 'actions.close', + [''] = 'actions.refresh', + ['-'] = 'actions.parent', + ['_'] = 'actions.open_cwd', + ['`'] = 'actions.cd', + ['~'] = 'actions.tcd', + ['g.'] = 'actions.toggle_hidden', + }, + }, + -- Optional dependencies + dependencies = { 'nvim-tree/nvim-web-devicons' }, + keys = { + { + '-', + function() + require('oil').open() + end, + desc = 'Open oil', + } + } +}