From f99c87f32d3051af2f45f68150a6cbf8b7462c66 Mon Sep 17 00:00:00 2001 From: Pascal Popp Date: Tue, 30 Jul 2024 17:01:29 +0200 Subject: [PATCH] add: oil.lua to custom plugins add oil.lua as custom plugin, a vim-vinegar like file explorer that lets you edit your filesystem like a nomal neovim buffer --- lua/custom/plugins/oil.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/custom/plugins/oil.lua diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua new file mode 100644 index 00000000..fda89df9 --- /dev/null +++ b/lua/custom/plugins/oil.lua @@ -0,0 +1,20 @@ +return { + { + 'stevearc/oil.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + require('oil').setup { + columns = { 'icon' }, + keymaps = { + [''] = false, + [''] = 'actions.select_split', + }, + view_options = { + show_hidden = true, + }, + } + -- Open parent directory in current window + vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) + end, + }, +}