From 93fb88d28585690761f4bb0a695dd10a17c71628 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= <henrik.tjader@nordicsemi.no>
Date: Fri, 5 Aug 2022 18:08:15 +0200
Subject: [PATCH] Disable and remove grammarous

---
 .vimrc | 24 +-----------------------
 1 file changed, 1 insertion(+), 23 deletions(-)

diff --git a/.vimrc b/.vimrc
index 555b0f7..fcf7b11 100644
--- a/.vimrc
+++ b/.vimrc
@@ -275,7 +275,7 @@ if exists('g:vscode')
 else
     " ordinary neovim
     " Grammatical checking
-    Plug 'rhysd/vim-grammarous'
+    "Plug 'rhysd/vim-grammarous'
 
     " Rust-lang support
     Plug 'rust-lang/rust.vim'
@@ -1260,28 +1260,6 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
 if has('conceal')
   set conceallevel=2 concealcursor=niv
 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
 
 
-- 
GitLab