plugins/ux: don't override default bindings

This commit is contained in:
Dmitriy Pleshevskiy 2022-10-02 22:24:30 +03:00
parent df91d3512a
commit 7205f28240
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -7,26 +7,26 @@ require("hop").setup({})
local hint = require("hop.hint")
vim.keymap.set("", "f", function()
vim.keymap.set("", "<leader>hf", function()
hop.hint_char1({
direction = hint.HintDirection.AFTER_CURSOR,
current_line_only = true,
})
end)
vim.keymap.set("", "F", function()
vim.keymap.set("", "<leader>hF", function()
hop.hint_char1({
direction = hint.HintDirection.BEFORE_CURSOR,
current_line_only = true,
})
end)
vim.keymap.set("", "t", function()
vim.keymap.set("", "<leader>ht", function()
hop.hint_char1({
direction = hint.HintDirection.AFTER_CURSOR,
current_line_only = true,
hint_offset = -1,
})
end)
vim.keymap.set("", "T", function()
vim.keymap.set("", "<leader>hT", function()
hop.hint_char1({
direction = hint.HintDirection.BEFORE_CURSOR,
current_line_only = true,
@ -34,8 +34,8 @@ vim.keymap.set("", "T", function()
})
end)
vim.keymap.set("n", "<leader>hc", "<Cmd>HopChar1<CR>")
vim.keymap.set("n", "<leader>hw", "<Cmd>HopWord<CR>")
vim.keymap.set("n", "<leader>hp", "<Cmd>HopPattern<CR>")
vim.keymap.set("n", "<leader>hl", "<Cmd>HopLine<CR>")
vim.keymap.set("n", "<leader>hv", "<Cmd>HopVertical<CR>")
vim.keymap.set("", "<leader>hc", "<Cmd>HopChar1<CR>")
vim.keymap.set("", "<leader>hw", "<Cmd>HopWord<CR>")
vim.keymap.set("", "<leader>hp", "<Cmd>HopPattern<CR>")
vim.keymap.set("", "<leader>hl", "<Cmd>HopLine<CR>")
vim.keymap.set("", "<leader>hv", "<Cmd>HopVertical<CR>")