Skip to content

Commit 4e3e3ab

Browse files
committed
feat: oil.nvim to edit the filesystem as a buffer
1 parent edd78f6 commit 4e3e3ab

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lua/plugins/ui.lua

+20
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,26 @@ return {
116116
opts = { signs = false },
117117
},
118118

119+
{ -- edit the file system as a buffer
120+
'stevearc/oil.nvim',
121+
opts = {
122+
keymaps = {
123+
['<C-s>'] = false,
124+
['<C-h>'] = false,
125+
['<C-l>'] = false,
126+
},
127+
view_options = {
128+
show_hidden = true,
129+
},
130+
},
131+
dependencies = { 'nvim-tree/nvim-web-devicons' },
132+
keys = {
133+
{ '-', ':Oil<cr>', desc = 'oil' },
134+
{ '<leader>ef', ':Oil<cr>', desc = 'edit [f]iles' },
135+
},
136+
cmd = 'Oil',
137+
},
138+
119139
{ -- statusline
120140
-- PERF: I found this to slow down the editor
121141
'nvim-lualine/lualine.nvim',

0 commit comments

Comments
 (0)