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, + }, +}