Nvim: update all plugins to used ones, disable unused

This commit is contained in:
Robert Kmieć
2023-10-19 23:47:02 +02:00
parent ec0ae0ee13
commit c436875e4b
32 changed files with 179 additions and 92 deletions

View File

@@ -1,10 +1,22 @@
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
'smoka7/hop.nvim',
version = "*",
config = function()
-- place this in one of your configuration file(s)
local hop = require('hop')
hop.setup()
local directions = require('hop.hint').HintDirection
vim.keymap.set('', 'f', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false })
end, {remap=true})
vim.keymap.set('', 'F', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false })
end, {remap=true})
vim.keymap.set('', 't', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false, hint_offset = -1 })
end, {remap=true})
vim.keymap.set('', 'T', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false, hint_offset = 1 })
end, {remap=true})
end,
}