cleaned up the config some
This commit is contained in:
parent
96add0cf96
commit
f328a7e2f5
4 changed files with 39 additions and 9 deletions
|
|
@ -1,6 +1,30 @@
|
|||
return {
|
||||
'stevearc/oil.nvim',
|
||||
opts = {},
|
||||
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',
|
||||
},
|
||||
use_default_keymaps = false,
|
||||
-- Optional dependencies
|
||||
dependencies = { 'echasnovski/mini.icons' },
|
||||
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
|
||||
|
|
|
|||
|
|
@ -6,4 +6,12 @@ return {
|
|||
position = 'right',
|
||||
width = 60,
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>dt',
|
||||
':DocsViewToggle<enter>',
|
||||
desc = 'Toggle Documentation',
|
||||
mode = { 'n' },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ return {
|
|||
-- lint.linters_by_ft['inko'] = nil
|
||||
-- lint.linters_by_ft['janet'] = nil
|
||||
-- lint.linters_by_ft['json'] = nil
|
||||
-- lint.linters_by_ft['markdown'] = nil
|
||||
lint.linters_by_ft['markdown'] = nil
|
||||
-- lint.linters_by_ft['rst'] = nil
|
||||
-- lint.linters_by_ft['ruby'] = nil
|
||||
-- lint.linters_by_ft['terraform'] = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue