neovim: add hop.nvim

This commit is contained in:
FollieHiyuki 2021-07-19 04:04:25 +03:00
parent 54dcfc154d
commit 4fc3c5d6a0
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
2 changed files with 16 additions and 3 deletions

View File

@ -107,7 +107,12 @@ wk.register({
['<C-n>'] = {':NvimTreeToggle<CR>', 'NvimTree'}, ['<C-n>'] = {':NvimTreeToggle<CR>', 'NvimTree'},
-- ToggleTerm -- ToggleTerm
['<C-\\>'] = {':ToggleTerm<CR>', 'Toggle terminal'} ['<C-\\>'] = {':ToggleTerm<CR>', 'Toggle terminal'},
-- hop.nvim
s = {':HopWord<CR>', 'Hop to word'},
S = {':HopChar1<CR>', 'Hop to character'},
['<A-s>'] = {':HopPattern<CR>', 'Hop to pattern'}
}) })
----------------------------------- -----------------------------------

View File

@ -243,7 +243,14 @@ return require('packer').startup(
} }
use { use {
'machakann/vim-sandwich', 'machakann/vim-sandwich',
event = 'BufRead' keys = {'sa', 'sd', 'sr'}
}
use {
'phaazon/hop.nvim',
cmd = {'HopChar1', 'HopChar2', 'HopWord', 'HopPattern', 'HopLine'},
config = function()
require('hop').setup{keys = 'etovxqpdygfblzhckisuran'}
end
} }
use { use {
'junegunn/vim-easy-align', 'junegunn/vim-easy-align',
@ -313,6 +320,7 @@ return require('packer').startup(
end end
} }
-- TODO: lspsaga, orgmode.nvim, TrueZen/zen-mode, nvim-lint, vim-spectre, nvim-dap, hop.nvim, dial.nvim, asynctasks.nvim -- TODO: lspsaga, orgmode.nvim, zen-mode.nvim, nvim-lint, format(ter).nvim, rest.nvim,
-- sqls.nvim, symbols-outline.nvim, nvim-spectre, nvim-dap, dial.nvim, asynctasks.nvim
end end
) )