Skip to content

Commit e1e896a

Browse files
author
arauto
committed
Habilitado o plugin oil
1 parent 4120893 commit e1e896a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lua/custom/plugins/oil.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
return {
2+
'stevearc/oil.nvim',
3+
-- dependencies = { { "echasnovski/mini.icons", opts = {} } },
4+
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if prefer nvim-web-devicons
5+
config = function()
6+
require('oil').setup {
7+
columns = { 'icon' },
8+
view_options = {
9+
show_hidden = true,
10+
},
11+
}
12+
13+
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
14+
vim.keymap.set('n', '<space>-', require('oil').toggle_float)
15+
end,
16+
}

0 commit comments

Comments
 (0)