Disable some binds for oil.nvim

This commit is contained in:
pro100ton 2025-01-13 12:26:18 +03:00
parent 969288d942
commit e0831aaedc

View file

@ -1,5 +1,5 @@
return {
'stevearc/oil.nvim',
"stevearc/oil.nvim",
---@module 'oil'
---@type oil.SetupOpts
opts = {
@ -7,11 +7,11 @@ return {
["g?"] = "actions.show_help",
["<CR>"] = "actions.select",
["<C-s>"] = { "actions.select", opts = { vertical = true }, desc = "Open the entry in a vertical split" },
["<C-h>"] = { "actions.select", opts = { horizontal = true }, desc = "Open the entry in a horizontal split" },
["<C-h>"] = false,
["<C-t>"] = { "actions.select", opts = { tab = true }, desc = "Open the entry in new tab" },
["<C-p>"] = "actions.preview",
["<C-c>"] = "actions.close",
["<C-l>"] = "actions.refresh",
["<C-l>"] = false,
["-"] = "actions.parent",
["_"] = "actions.open_cwd",
["`"] = "actions.cd",
@ -21,6 +21,9 @@ return {
["g."] = "actions.toggle_hidden",
["g\\"] = "actions.toggle_trash",
},
view_options = {
show_hidden = true,
},
},
-- Optional dependencies
dependencies = { { "echasnovski/mini.icons", opts = {} } },