Skip to content

Commit

Permalink
AnyJump keymaps fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lvim-tech committed Oct 30, 2022
1 parent 7e31910 commit 9b2a228
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions LVIM/modules/languages.org
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,8 @@
function config.any_jump_nvim()
vim.g.any_jump_disable_default_keybindings = 1
vim.g.any_jump_list_numbers = 1
vim.keymap.set("n", "<A-u>", function()
vim.cmd("AnyJump")
end, { noremap = true, silent = true })
vim.keymap.set("n", "<A-u>", ":AnyJump<CR>", { noremap = true, silent = true })
vim.keymap.set("v", "<A-u>", ":AnyJumpVisual<CR>", { noremap = true, silent = true })
end
#+end_src

Expand Down
1 change: 0 additions & 1 deletion lua/configs/base/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ keymaps["normal"] = {
keymaps["visual"] = {
{ "*", "<Esc>/\\%V" }, -- Visual search /
{ "#", "<Esc>?\\%V" }, -- Visual search ?
{ "<A-u>", ":AnyJumpVisual<CR>" }, -- Any jump visual
}

return keymaps
5 changes: 2 additions & 3 deletions lua/modules/base/configs/languages/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,8 @@ end
function config.any_jump_nvim()
vim.g.any_jump_disable_default_keybindings = 1
vim.g.any_jump_list_numbers = 1
vim.keymap.set("n", "<A-u>", function()
vim.cmd("AnyJump")
end, { noremap = true, silent = true })
vim.keymap.set("n", "<A-u>", ":AnyJump<CR>", { noremap = true, silent = true })
vim.keymap.set("v", "<A-u>", ":AnyJumpVisual<CR>", { noremap = true, silent = true })
end

function config.symbols_outline_nvim()
Expand Down

0 comments on commit 9b2a228

Please sign in to comment.