nvim mappings

This commit is contained in:
thek4n 2024-02-01 14:09:00 +03:00
parent e3ad622572
commit 7118cb6f95

View File

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