use flash.nvim instead of Hop.nvim
This commit is contained in:
60
lua/backplugins/hop.lua
Normal file
60
lua/backplugins/hop.lua
Normal file
@@ -0,0 +1,60 @@
|
||||
return{
|
||||
{
|
||||
'smoka7/hop.nvim',
|
||||
version = "*",
|
||||
opts = {
|
||||
keys = 'etovxqpdygfblzhckisuran'
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>f',
|
||||
function()
|
||||
require('hop').hint_char1({ direction = require('hop.hint').HintDirection.AFTER_CURSOR, current_line_only = true })
|
||||
end,
|
||||
desc = 'Hop forward',
|
||||
},
|
||||
{
|
||||
'<leader>F',
|
||||
function()
|
||||
require('hop').hint_char1({ direction = require('hop.hint').HintDirection.BEFORE_CURSOR, current_line_only = true })
|
||||
end,
|
||||
desc = 'Hop backward',
|
||||
},
|
||||
{
|
||||
'<leader>t',
|
||||
function()
|
||||
require('hop').hint_char1({ direction = require('hop.hint').HintDirection.AFTER_CURSOR, current_line_only = true, hint_offset = -1 })
|
||||
end,
|
||||
desc = 'Hop forward (offset)',
|
||||
},
|
||||
{
|
||||
'<leader>T',
|
||||
function()
|
||||
require('hop').hint_char1({ direction = require('hop.hint').HintDirection.BEFORE_CURSOR, current_line_only = true, hint_offset = 1 })
|
||||
end,
|
||||
desc = 'Hop backward (offset)',
|
||||
},
|
||||
{
|
||||
'<leader>s',
|
||||
function()
|
||||
require('hop').hint_char1()
|
||||
end,
|
||||
desc = 'Hop anywhere',
|
||||
},
|
||||
{
|
||||
'<leader>S',
|
||||
function()
|
||||
require('hop').hint_char2()
|
||||
end,
|
||||
desc = 'Hop anywhere (2 chars)',
|
||||
},
|
||||
{
|
||||
'<leader>sw',
|
||||
function()
|
||||
require('hop').hint_words()
|
||||
end,
|
||||
desc = 'Hop words',
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user