replace hop with leap

This commit is contained in:
Garrett Dawson 2023-04-06 21:00:35 -06:00
parent e22a0b7248
commit 4baccf1f8b
3 changed files with 50 additions and 42 deletions

View file

@ -58,43 +58,4 @@ for type, icon in pairs(signs) do
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
-- null-ls
-- @see: https://github.com/jay-babu/mason-null-ls.nvim
-- might want to just use mason-null-ls. not yet sure what the advantage is.
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.prettierd,
},
})
-- nvim-autopairs + nvim-cmp
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on(
'confirm_done',
cmp_autopairs.on_confirm_done()
)
-- neogen
vim.keymap.set('n', '<leader>nf', ":Neogen func<CR>", { noremap = true, desc = '[D]ocument [F]unction' })
-- hop
local hop = require('hop')
local directions = require('hop.hint').HintDirection
vim.keymap.set(
'',
'<leader>h',
function() hop.hint_char1({ direction = directions.AFTER_CURSOR }) end,
{ remap = true, desc = '[H]opChar1 forwards' }
)
vim.keymap.set(
'',
'<leader>H',
function() hop.hint_char1({ direction = directions.BEFORE_CURSOR }) end,
{ remap = true, desc = '[H]opChar1 backwards' }
)
-- vim: ts=2 sts=2 sw=2 et