nvim: mapping C-f for word

This commit is contained in:
thek4n 2024-01-31 16:13:29 +03:00
parent a578186c4f
commit 90a1a11f08

View File

@ -26,6 +26,9 @@ map('n', '/', ':set hlsearch<CR>/')
-- copy selection to search line
map('v', '<C-f>', '"fy:set hlsearch<CR>/\\V<C-r>f/C<CR>')
-- copy word under cursor to search line
map('n', '<C-f>', ':set hlsearch<CR>/\\V<C-r><C-w>/C<CR>')
map('n', '<Leader>hl', create_function_tabdo('lua toggle_number_style()'),
{desc = "Toggle line number style"})