diff --git a/home/.config/nvim/lua/mappings.lua b/home/.config/nvim/lua/mappings.lua index 49d7313..180819e 100644 --- a/home/.config/nvim/lua/mappings.lua +++ b/home/.config/nvim/lua/mappings.lua @@ -107,7 +107,12 @@ wk.register({ [''] = {':NvimTreeToggle', 'NvimTree'}, -- ToggleTerm - [''] = {':ToggleTerm', 'Toggle terminal'} + [''] = {':ToggleTerm', 'Toggle terminal'}, + + -- hop.nvim + s = {':HopWord', 'Hop to word'}, + S = {':HopChar1', 'Hop to character'}, + [''] = {':HopPattern', 'Hop to pattern'} }) ----------------------------------- diff --git a/home/.config/nvim/lua/plugins.lua b/home/.config/nvim/lua/plugins.lua index 5200a67..51b65a7 100644 --- a/home/.config/nvim/lua/plugins.lua +++ b/home/.config/nvim/lua/plugins.lua @@ -243,7 +243,14 @@ return require('packer').startup( } use { '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 { 'junegunn/vim-easy-align', @@ -313,6 +320,7 @@ return require('packer').startup( 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 )