summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/hop.lua
blob: d3dd90d341b7051b08f91e1ada25e8dc59fd6387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
vim.api.nvim_set_keymap('n', 's', ":HopChar2<cr>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', 'S', ":HopWord<cr>", { noremap = true, silent = true })

local M = {}

M.config = function()
  O.plugin.hop = {
    active = false,
  }
end

M.setup = function()
  local status_ok, hop = pcall(require, "hop")
  if not status_ok then
    return
  end
  hop.setup(O.plugin.hop)
end

return M