nvim: Add grammarous keybindings

This commit is contained in:
2022-04-11 16:48:29 +02:00
parent efa3e34d02
commit 109d1b46a6

View File

@ -187,6 +187,12 @@ nnoremap U :redo<Enter>
nnoremap <leader>a :CocAction<Enter>
nnoremap <leader>r :CocCommand document.renameCurrentWord<Enter>
" grammarous
nmap <leader>gc :GrammarousCheck<Enter>
nmap <leader>gq <Plug>(grammarous-close-info-window) <Plug>(grammarous-reset)
nmap <leader>gn <Plug>(grammarous-move-to-next-error) <Plug>(grammarous-open-info-window)
nmap <leader>gN <Plug>(grammarous-move-to-previous-error) <Plug>(grammarous-open-info-window)
" vim-smooth-scroll hotkey overrides
noremap <silent> <c-u> :call smooth_scroll#up(&scroll, 0, 3)<CR>
noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 0, 3)<CR>