Skip to content

Commit 5123d1f

Browse files
committed
feat(nvim): oil maps
1 parent 9c13b85 commit 5123d1f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

nvim/lua/plugins.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,15 @@ return {
11881188
keys = {
11891189
{ "<leader>e", "<cmd>Oil<cr>", desc = "Explorer Oil", remap = true },
11901190
},
1191-
opts = {},
1191+
opts = {
1192+
keymaps = {
1193+
["<C-h>"] = false,
1194+
["<C-l>"] = false,
1195+
["<C-r>"] = "actions.refresh",
1196+
["<C-s>"] = { "actions.select", opts = { horizontal = true } },
1197+
["<C-v>"] = { "actions.select", opts = { vertical = true } },
1198+
},
1199+
},
11921200
config = function(_, opts)
11931201
-- helper function to parse output
11941202
local function parse_output(proc)

0 commit comments

Comments
 (0)