From eb87655ced9a517fafaead9f64ff4b0aca30d159 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 23 May 2023 15:48:17 +0200 Subject: [PATCH] added oil --- lua/plugins/oil.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lua/plugins/oil.lua 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', + } + } +}