dotfiles/dot_config/nvim/after/plugin/hop.lua

15 lines
323 B
Lua
Raw Normal View History

2023-02-24 07:31:04 +01:00
local ok, hop = pcall(require, 'hop')
if not ok then
return
end
hop.setup {
quit_key = '<SPC>',
uppercase_labels = true
}
local map = vim.keymap.set
map('n', 'f', function() hop.hint_char1({current_line_only = true }) end, {remap=true})
map('n', '<leader>s', function() hop.hint_char2() end, {remap=true})