1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-25 20:47:45 +01:00

nvim: added leap for improved movement

This commit is contained in:
tiyn 2024-03-27 01:06:21 +01:00
parent 9f984e8c47
commit 87b28a025c
2 changed files with 5 additions and 1 deletions

View File

@ -132,3 +132,8 @@ m.nnoremap("N", [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require(
-- sindrets/winshift.nvim
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")

View File

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