From b51f1ae28924a752258e7607fbc3210f9b18eaac Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 22 Jul 2021 00:08:36 +0200 Subject: Updates based on Chris's lunarvim --- .config/nvim/lua/core/hop.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .config/nvim/lua/core/hop.lua (limited to '.config/nvim/lua/core/hop.lua') 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", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'S', ":HopWord", { 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 -- cgit v1.2.3-70-g09d2