First custom lua snippets

This commit is contained in:
Oliver Hartmann
2022-02-10 10:55:13 +01:00
parent b8bca37446
commit 9bf991c537
3 changed files with 55 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ utils.map('v', '<End>', 'g<End>')
utils.map('v', '<', '<gv')
utils.map('v', '>', '>gv')
utils.map('n', '<leader>a', '"ayw')
-- Highlight word under cursor
utils.map('n', 'ü', ":let @/='\\<<C-R>=expand(\"<cword>\")<CR>\\>'<CR>:set hls<CR>", { noremap = true, silent = true })
utils.map('v', 'ü', "y:let @/='<C-R>=escape(@\",'/\\')<CR>'<CR>:set hls<CR>") utils.map('v', 'ü', "y:let @/='<C-R>=escape(@\",'/\\')<CR>'<CR>:set hls<CR>", { noremap = true, silent = true })