2023-12-04 09:24:43 +01:00
|
|
|
return {
|
|
|
|
'stevearc/oil.nvim',
|
|
|
|
-- lazy = false,
|
|
|
|
event = 'VeryLazy',
|
2024-05-22 13:59:00 +02:00
|
|
|
keys = {
|
|
|
|
{ '<leader>.', '<cmd>Oil<cr>', desc = 'oil' },
|
|
|
|
},
|
2023-12-04 09:24:43 +01:00
|
|
|
opts = {
|
|
|
|
columns = {
|
2024-05-22 13:59:00 +02:00
|
|
|
'mtime',
|
|
|
|
'size',
|
|
|
|
'permissions',
|
|
|
|
'icon',
|
2023-12-04 09:24:43 +01:00
|
|
|
},
|
|
|
|
-- Buffer-local options to use for oil buffers
|
|
|
|
buf_options = {
|
|
|
|
buflisted = false,
|
|
|
|
},
|
|
|
|
-- Window-local options to use for oil buffers
|
|
|
|
win_options = {
|
|
|
|
wrap = false,
|
2024-05-22 13:59:00 +02:00
|
|
|
signcolumn = 'no',
|
2023-12-04 09:24:43 +01:00
|
|
|
cursorcolumn = false,
|
2024-05-22 13:59:00 +02:00
|
|
|
foldcolumn = '0',
|
2023-12-04 09:24:43 +01:00
|
|
|
spell = false,
|
|
|
|
list = false,
|
|
|
|
conceallevel = 3,
|
|
|
|
concealcursor = 'nvic',
|
|
|
|
},
|
|
|
|
keymaps = {
|
|
|
|
['g?'] = 'actions.show_help',
|
|
|
|
['<CR>'] = 'actions.select',
|
|
|
|
['<C-s>'] = 'actions.select_vsplit',
|
|
|
|
['<C-h>'] = 'actions.select_split',
|
|
|
|
['<C-p>'] = 'actions.preview',
|
|
|
|
['<TAB>'] = 'actions.preview',
|
|
|
|
['<C-c>'] = 'actions.close',
|
|
|
|
['q'] = 'actions.close',
|
|
|
|
['<C-l>'] = 'actions.refresh',
|
|
|
|
['-'] = 'actions.parent',
|
|
|
|
['l'] = 'actions.parent',
|
|
|
|
['_'] = 'actions.open_cwd',
|
|
|
|
['`'] = 'actions.cd',
|
|
|
|
['~'] = 'actions.tcd',
|
|
|
|
['g.'] = 'actions.toggle_hidden',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|