From ba99975d6858248c8371d7f8939331ea1bcf0758 Mon Sep 17 00:00:00 2001 From: joe Date: Fri, 29 Aug 2025 18:26:18 +0200 Subject: up --- .config/nvim/lua/config/lazy.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.config/nvim/lua/config/lazy.lua') diff --git a/.config/nvim/lua/config/lazy.lua b/.config/nvim/lua/config/lazy.lua index e61cf4a..5041634 100644 --- a/.config/nvim/lua/config/lazy.lua +++ b/.config/nvim/lua/config/lazy.lua @@ -97,11 +97,14 @@ require('lazy').setup({ 'ggandor/leap.nvim', dependencies = { 'tpope/vim-repeat' }, config = function() + require('leap').opts.preview_filter = + function (ch0, ch1, ch2) + return not ( + ch1:match('%s') or + ch0:match('%a') and ch1:match('%a') and ch2:match('%a') + ) + end require('leap').setup({}) - vim.keymap.set({'n', 'x', 'o'}, 's', '(leap-forward-to)') - vim.keymap.set({'n', 'x', 'o'}, 'S', '(leap-backward-to)') - vim.keymap.set({'n', 'x', 'o'}, '', '(leap-forward-till)') - vim.keymap.set({'n', 'x', 'o'}, '', '(leap-backward-till)') end }, { -- cgit v1.2.3