Skip to content

Commit 21a9ae3

Browse files
Daniil RozanovNTBBloodbath
authored andcommitted
fix: H and L keymaps are buffer local
1 parent a122108 commit 21a9ae3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lua/rest-nvim/autocmds.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ function autocmds.setup()
3030
callback = function(args)
3131
vim.keymap.set("n", "H", function()
3232
functions.cycle_result_pane("prev")
33-
end, { desc = "Go to previous winbar pane" })
33+
end, {
34+
desc = "Go to previous winbar pane",
35+
buffer = args.buf,
36+
})
3437
vim.keymap.set("n", "L", function()
3538
functions.cycle_result_pane("next")
36-
end, { desc = "Go to next winbar pane" })
39+
end, {
40+
desc = "Go to next winbar pane",
41+
buffer = args.buf,
42+
})
3743
vim.keymap.set("n", "?", result_help.open, {
3844
desc = "Open rest.nvim request results help window",
3945
buffer = args.buf,

0 commit comments

Comments
 (0)