diff options
author | Josh Rahm <rahm@google.com> | 2025-04-09 03:21:13 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2025-04-09 03:21:13 +0000 |
commit | f67aee54e1c84c3d346edd966f8a6c2e47916917 (patch) | |
tree | f2ca8c9685d608cb713d9680dfc4c0ff03e31eaa | |
parent | dbb6fa04d0e093431d1cdb4e98fd50442d285d9f (diff) | |
download | config.vim-f67aee54e1c84c3d346edd966f8a6c2e47916917.tar.gz config.vim-f67aee54e1c84c3d346edd966f8a6c2e47916917.tar.bz2 config.vim-f67aee54e1c84c3d346edd966f8a6c2e47916917.zip |
Add hop.vim and map gh to it.
gh is normally set to start select mode, but select mode is useless, so
overriding it is fine.
-rw-r--r-- | init.vim | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -50,6 +50,7 @@ Plug 'kylechui/nvim-surround' Plug 'vito-c/jq.vim' Plug 'EdenEast/nightfox.nvim' Plug 'sphamba/smear-cursor.nvim' +Plug 'smoka7/hop.nvim' Plug 'lewis6991/gitsigns.nvim' @@ -333,6 +334,8 @@ menu PopUp.Split :split<cr> menu PopUp.VSplit :vsplit<cr> menu PopUp.Close :q<cr> +noremap gh <cmd>HopCamelCase<cr> + lua << EOF function open_terminal_on_directory() local buf = vim.api.nvim_get_current_buf() @@ -546,5 +549,6 @@ lua << EOF require('smear_cursor').legacy_computing_symbols_support = true require('smear_cursor').stiffness = 0.4 require('smear_cursor').distance_stop_animating = 5 + require('hop').setup() EOF |