summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc17
1 files changed, 17 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index fb044b7..62f2ba6 100644
--- a/.vimrc
+++ b/.vimrc
@@ -113,6 +113,8 @@ Plugin 'editorconfig/editorconfig-vim'
Plugin 'thaerkh/vim-workspace'
+Plugin 'rhysd/vim-grammarous'
+
call vundle#end()
syntax on
filetype plugin indent on
@@ -242,6 +244,21 @@ let g:phpqa_codesniffer_autorun = 0
let g:phpqa_codecoverage_autorun = 0
let g:phpqa_codecoverage_file = "code-coverage-report.xml"
+" vim-grammarous
+let g:grammarous#languagetool_cmd = 'languagetool'
+let g:grammarous#show_first_error = 1
+
+let g:grammarous#hooks = {}
+function! g:grammarous#hooks.on_check(errs) abort
+ nmap <buffer><C-n> <Plug>(grammarous-move-to-next-error)
+ nmap <buffer><C-p> <Plug>(grammarous-move-to-previous-error)
+endfunction
+
+function! g:grammarous#hooks.on_reset(errs) abort
+ nunmap <buffer><C-n>
+ nunmap <buffer><C-p>
+endfunction
+
" unite
let g:unite_source_history_yank_enable = 1
call unite#filters#matcher_default#use(['matcher_fuzzy'])