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
This commit is contained in:
parent
5911fc1b87
commit
f99c87f32d
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('oil').setup {
|
||||
columns = { 'icon' },
|
||||
keymaps = {
|
||||
['<C-h>'] = false,
|
||||
['<M-h>'] = 'actions.select_split',
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
}
|
||||
-- Open parent directory in current window
|
||||
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue