added oil
This commit is contained in:
parent
99008719e2
commit
eb87655ced
31
lua/plugins/oil.lua
Normal file
31
lua/plugins/oil.lua
Normal 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',
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user