plugins/ux: don't override default bindings
This commit is contained in:
parent
df91d3512a
commit
7205f28240
1 changed files with 9 additions and 9 deletions
|
@ -7,26 +7,26 @@ require("hop").setup({})
|
||||||
|
|
||||||
local hint = require("hop.hint")
|
local hint = require("hop.hint")
|
||||||
|
|
||||||
vim.keymap.set("", "f", function()
|
vim.keymap.set("", "<leader>hf", function()
|
||||||
hop.hint_char1({
|
hop.hint_char1({
|
||||||
direction = hint.HintDirection.AFTER_CURSOR,
|
direction = hint.HintDirection.AFTER_CURSOR,
|
||||||
current_line_only = true,
|
current_line_only = true,
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
vim.keymap.set("", "F", function()
|
vim.keymap.set("", "<leader>hF", function()
|
||||||
hop.hint_char1({
|
hop.hint_char1({
|
||||||
direction = hint.HintDirection.BEFORE_CURSOR,
|
direction = hint.HintDirection.BEFORE_CURSOR,
|
||||||
current_line_only = true,
|
current_line_only = true,
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
vim.keymap.set("", "t", function()
|
vim.keymap.set("", "<leader>ht", function()
|
||||||
hop.hint_char1({
|
hop.hint_char1({
|
||||||
direction = hint.HintDirection.AFTER_CURSOR,
|
direction = hint.HintDirection.AFTER_CURSOR,
|
||||||
current_line_only = true,
|
current_line_only = true,
|
||||||
hint_offset = -1,
|
hint_offset = -1,
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
vim.keymap.set("", "T", function()
|
vim.keymap.set("", "<leader>hT", function()
|
||||||
hop.hint_char1({
|
hop.hint_char1({
|
||||||
direction = hint.HintDirection.BEFORE_CURSOR,
|
direction = hint.HintDirection.BEFORE_CURSOR,
|
||||||
current_line_only = true,
|
current_line_only = true,
|
||||||
|
@ -34,8 +34,8 @@ vim.keymap.set("", "T", function()
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>hc", "<Cmd>HopChar1<CR>")
|
vim.keymap.set("", "<leader>hc", "<Cmd>HopChar1<CR>")
|
||||||
vim.keymap.set("n", "<leader>hw", "<Cmd>HopWord<CR>")
|
vim.keymap.set("", "<leader>hw", "<Cmd>HopWord<CR>")
|
||||||
vim.keymap.set("n", "<leader>hp", "<Cmd>HopPattern<CR>")
|
vim.keymap.set("", "<leader>hp", "<Cmd>HopPattern<CR>")
|
||||||
vim.keymap.set("n", "<leader>hl", "<Cmd>HopLine<CR>")
|
vim.keymap.set("", "<leader>hl", "<Cmd>HopLine<CR>")
|
||||||
vim.keymap.set("n", "<leader>hv", "<Cmd>HopVertical<CR>")
|
vim.keymap.set("", "<leader>hv", "<Cmd>HopVertical<CR>")
|
||||||
|
|
Reference in a new issue