summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-29 18:26:18 +0200
committerjoe <rbo@gmx.us>2025-08-29 18:26:52 +0200
commitba99975d6858248c8371d7f8939331ea1bcf0758 (patch)
treea52096c1c7c5cebf69c3d6eb1856ad5e956d2c6c /.config
parentup (diff)
downloaddotfiles-bsd-ba99975d6858248c8371d7f8939331ea1bcf0758.tar.gz
dotfiles-bsd-ba99975d6858248c8371d7f8939331ea1bcf0758.tar.bz2
dotfiles-bsd-ba99975d6858248c8371d7f8939331ea1bcf0758.tar.xz
dotfiles-bsd-ba99975d6858248c8371d7f8939331ea1bcf0758.tar.zst
dotfiles-bsd-ba99975d6858248c8371d7f8939331ea1bcf0758.zip
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/config/bindings.lua2
-rw-r--r--.config/nvim/lua/config/lazy.lua11
2 files changed, 9 insertions, 4 deletions
diff --git a/.config/nvim/lua/config/bindings.lua b/.config/nvim/lua/config/bindings.lua
index 5821e5f..73dc669 100644
--- a/.config/nvim/lua/config/bindings.lua
+++ b/.config/nvim/lua/config/bindings.lua
@@ -69,3 +69,5 @@ vim.keymap.set('n', '<leader>rw', fzf.lsp_definitions, { noremap = true, silent
vim.keymap.set('n', '<leader>ri', fzf.lsp_implementations, { noremap = true, silent = true })
vim.keymap.set('n', '<leader>rt', fzf.lsp_typedefs, { noremap = true, silent = true })
vim.keymap.set('n', '<leader>re', fzf.lsp_document_symbols, { noremap = true, silent = true })
+vim.keymap.set('n', '<leader>s', '<Plug>(leap-anywhere)', { noremap = true, silent = true })
+vim.keymap.set('n', '<leader>S', '<Plug>(leap-backward)', { noremap = true, silent = true })
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'}, '<leader>s', '<Plug>(leap-forward-to)')
- vim.keymap.set({'n', 'x', 'o'}, '<leader>S', '<Plug>(leap-backward-to)')
- vim.keymap.set({'n', 'x', 'o'}, '<C-s>', '<Plug>(leap-forward-till)')
- vim.keymap.set({'n', 'x', 'o'}, '<C-S-s>', '<Plug>(leap-backward-till)')
end
},
{