applied my custom settings without breaking anything
This commit is contained in:
parent
452854b26d
commit
6aa224ecad
24 changed files with 3034 additions and 768 deletions
39
lua/plugins/topper3418/oil.lua
Normal file
39
lua/plugins/topper3418/oil.lua
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
return {
|
||||
'stevearc/oil.nvim',
|
||||
opts = {
|
||||
columns = {
|
||||
'icon',
|
||||
-- "permissions",
|
||||
'size',
|
||||
'mtime',
|
||||
},
|
||||
},
|
||||
keymaps = {
|
||||
['g?'] = 'actions.show_help',
|
||||
['<CR>'] = 'actions.select',
|
||||
['<C-s>'] = { 'actions.select', opts = { vertical = true }, desc = 'Open the entry in a vertical split' },
|
||||
['<C-t>'] = { 'actions.select', opts = { tab = true }, desc = 'Open the entry in new tab' },
|
||||
['<C-p>'] = 'actions.preview',
|
||||
['<C-c>'] = 'actions.close',
|
||||
['-'] = 'actions.parent',
|
||||
['_'] = 'actions.open_cwd',
|
||||
['`'] = 'actions.cd',
|
||||
['~'] = { 'actions.cd', opts = { scope = 'tab' }, desc = ':tcd to the current oil directory' },
|
||||
['gs'] = 'actions.change_sort',
|
||||
['gx'] = 'actions.open_external',
|
||||
['g.'] = 'actions.toggle_hidden',
|
||||
['g\\'] = 'actions.toggle_trash',
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'-',
|
||||
'<CMD>Oil<CR>',
|
||||
desc = 'Open parent directory',
|
||||
mode = { 'n' }
|
||||
}
|
||||
},
|
||||
use_default_keymaps = false,
|
||||
-- Optional dependencies
|
||||
-- dependencies = { 'echasnovski/mini.icons' },
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if prefer nvim-web-devicons
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue