Skip to content
Snippets Groups Projects
Commit 93fb88d2 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Disable and remove grammarous

parent 1b9bae2b
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,7 @@ if exists('g:vscode') ...@@ -275,7 +275,7 @@ if exists('g:vscode')
else else
" ordinary neovim " ordinary neovim
" Grammatical checking " Grammatical checking
Plug 'rhysd/vim-grammarous' "Plug 'rhysd/vim-grammarous'
" Rust-lang support " Rust-lang support
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
...@@ -1260,28 +1260,6 @@ imap <c-x><c-l> <plug>(fzf-complete-line) ...@@ -1260,28 +1260,6 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
if has('conceal') if has('conceal')
set conceallevel=2 concealcursor=niv set conceallevel=2 concealcursor=niv
endif endif
"
"
" Grammarous remaps
"
"This above sample, when present in your .vimrc will create five handy additional normal-mode commands namely
"gn (next error), gp (previous error), gr (ignore the error), gf (fix automatically with suggested correction),
"gR (ignore all errors with same rule). These are available only to the current buffer and only when
":GrammarousCheck is active, and will disappear as soon as :GrammarousReset is used.
let g:grammarous#hooks = {}
function! g:grammarous#hooks.on_check(errs) abort
nmap <buffer>gn <Plug>(grammarous-move-to-next-error)
nmap <buffer>gp <Plug>(grammarous-move-to-previous-error)
nmap <buffer>gr <Plug>(grammarous-move-to-info-window)r
nmap <buffer>gas f <Plug>(grammarous-move-to-info-window)f
nmap <buffer>gR <Plug>(grammarous-move-to-info-window)R
endfunction
function! g:grammarous#hooks.on_reset(errs) abort
nunmap <buffer>gn
nunmap <buffer>gp
nunmap <buffer>gr
nunmap <buffer>gf
nunmap <buffer>gR
endfunction endfunction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment