nvim mappings
This commit is contained in:
parent
5b4a3096b6
commit
668d4f2b94
@ -19,8 +19,16 @@ map('n', '<Leader>h/',
|
||||
function() vim.opt.hlsearch = not vim.opt.hlsearch["_value"] end,
|
||||
{desc = "Toggle search highlighting"})
|
||||
|
||||
|
||||
-- enable search highlight in search mode
|
||||
map('n', '/', ':set hlsearch<CR>/')
|
||||
|
||||
-- copy selection to search line
|
||||
map('v', '<C-f>', '"fy:set hlsearch<CR>/<C-r>f<CR>')
|
||||
|
||||
-- copy selection to command line
|
||||
map('v', ':', '"fy:<C-r>f<C-b>')
|
||||
|
||||
map('n', '<Leader>hl', create_function_tabdo('lua toggle_number_style()'),
|
||||
{desc = "Toggle line number style"})
|
||||
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
return {
|
||||
'karb94/neoscroll.nvim',
|
||||
config = function()
|
||||
require('neoscroll').setup()
|
||||
require('neoscroll').setup({
|
||||
mappings = {'<C-u>', '<C-d>', '<C-b>',
|
||||
'<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
|
||||
respect_scrolloff = false,
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user