diff options
Diffstat (limited to '.config/nvim/lua/core/hop.lua')
-rw-r--r-- | .config/nvim/lua/core/hop.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/nvim/lua/core/hop.lua b/.config/nvim/lua/core/hop.lua new file mode 100644 index 0000000..d3dd90d --- /dev/null +++ b/.config/nvim/lua/core/hop.lua @@ -0,0 +1,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 |