Nvim: initialize leap in lua script

This commit is contained in:
Robert Kmieć
2023-02-16 10:40:24 +01:00
parent f327679ca9
commit d1dbfe720d
4 changed files with 12 additions and 23 deletions

View File

@@ -14,7 +14,6 @@ return {{
-- Files switch, jump and grep-like tools {{{
--"inside/vim-search-pulse",
"MunifTanjim/nui.nvim",
"ggandor/leap.nvim",
"nvim-lua/plenary.nvim",
"nvim-lua/popup.nvim",
"wellle/targets.vim",

View File

@@ -0,0 +1,10 @@
return {
'ggandor/leap.nvim',
config = function()
local leap = require('leap')
leap.add_default_mappings()
vim.cmd([[
autocmd ColorScheme * lua require('leap').init_highlight(true)
]])
end
}