added oil

This commit is contained in:
Oliver Hartmann 2023-05-23 15:48:17 +02:00
parent 99008719e2
commit eb87655ced

31
lua/plugins/oil.lua Normal file
View File

@ -0,0 +1,31 @@
return {
'stevearc/oil.nvim',
opts = {
keymaps = {
['g?'] = 'actions.show_help',
['<CR>'] = 'actions.select',
['<C-s>'] = 'actions.select_vsplit',
['<C-h>'] = 'actions.select_split',
['<C-t>'] = 'actions.select_tab',
['<C-p>'] = 'actions.preview',
['<C-c>'] = 'actions.close',
['<C-l>'] = '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',
}
}
}