nvim: added leap for improved movement

master
tiyn 9 months ago
parent 9f984e8c47
commit 87b28a025c

@ -132,3 +132,8 @@ m.nnoremap("N", [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require(
-- sindrets/winshift.nvim -- sindrets/winshift.nvim
m.nnoremap("<C-W>m", ":WinShift<CR>", "Navigation: enter window shift mode") m.nnoremap("<C-W>m", ":WinShift<CR>", "Navigation: enter window shift mode")
-- ggandor/leap.nvim
m.nnoremap("s", "<Plug>(leap-forward)", "Navigation: enter leap mode for forward movement")
m.nnoremap("S", "<Plug>(leap-backward)", "Navigation: enter leap mode for backwards movement")
m.nnoremap("gs", "<Plug>(leap-from-window", "Navigation: enter leap mode for other windows")

@ -3,7 +3,6 @@ return {
{ {
"ggandor/leap.nvim", "ggandor/leap.nvim",
config = function() config = function()
require("leap").create_default_mappings()
require("leap").opts.highlight_unlabeled_phase_one_targets = true require("leap").opts.highlight_unlabeled_phase_one_targets = true
require("leap").opts.equivalence_classes = { " \t\r\n", "([{", ")]}", "'\"`" } require("leap").opts.equivalence_classes = { " \t\r\n", "([{", ")]}", "'\"`" }
require("leap").opts.special_keys.prev_target = "<backspace>" require("leap").opts.special_keys.prev_target = "<backspace>"
Loading…
Cancel
Save