summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/config/lazy.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/nvim/lua/config/lazy.lua19
1 files changed, 13 insertions, 6 deletions
diff --git a/.config/nvim/lua/config/lazy.lua b/.config/nvim/lua/config/lazy.lua
index df4f702..2b8d66d 100644
--- a/.config/nvim/lua/config/lazy.lua
+++ b/.config/nvim/lua/config/lazy.lua
@@ -83,7 +83,7 @@ require('lazy').setup({
default_overlength = 80,
grace_length = 1,
highlight_to_eol = true,
- disable_ft = { 'qf', 'help', 'man', 'checkhealth', 'lazy', 'packer', 'NvimTree', 'Telescope', 'WhichKey', 'text', 'csv', 'lua', 'gosum', '' }
+ disable_ft = { 'qf', 'help', 'man', 'checkhealth', 'lazy', 'packer', 'NvimTree', 'Telescope', 'WhichKey', 'text', 'csv', 'lua', 'gosum', 'sh', '' }
}
end
},
@@ -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
},
{
@@ -120,7 +123,11 @@ require('lazy').setup({
border = 'none',
preview = {
border = 'none',
- title = false
+ title = false,
+ layout = "horizontal",
+ winopts = {
+ number = false,
+ },
},
previewers = {
builtin = {