hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

Leave cursor on screen for hint hops/ other hops, get rid of cursor at bottom left when not entering text

Open jam1015 opened this issue 4 years ago • 0 comments
trafficstars

with directional hint_char1 and hint_char2 options the cursor disappears from the screen, and a cursor is lit up at the bottom left. It would be more visually pleasing/less distracting if the cursor didn't disappear, and the cursor didn't light up at the bottom left. Could get rid of the cursor at the bottom left for other functions such as HopWord and it's variants. To be clear I am talking about vim/lua keybindings, not manually entering at the command line. To be clear, here is my setup:

			nnoremap <silent> <leader>w :HopWordAC<CR>
			nnoremap <silent> <leader>W :HopWordBC<CR>
			nnoremap <silent> <leader>/ :HopPatternAC<CR>
			nnoremap <silent> <leader>? :HopPatternBC<CR>
			nnoremap <silent> s :HopChar2AC<CR>
			nnoremap <silent> S :HopChar2BC<CR>
			lua vim.api.nvim_set_keymap('n', '<leader>f', "<cmd>lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = false })<cr>", {})
			lua vim.api.nvim_set_keymap('n', '<leader>F', "<cmd>lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = false })<cr>", {})
			lua vim.api.nvim_set_keymap('n', 's', "<cmd>lua require'hop'.hint_char2({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = false })<cr>", {})
			lua vim.api.nvim_set_keymap('n', 'S', "<cmd>lua require'hop'.hint_char2({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = false })<cr>", {})

jam1015 avatar Nov 04 '21 04:11 jam1015