From 0d0810e84dbab21fa55a8d2a947eb63d1352f873 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 9 May 2018 13:17:01 +0200 Subject: vim: Add vim-grammarous Signed-off-by: Florian Pritz --- .gitmodules | 3 +++ .vim/bundle/vim-grammarous | 1 + .vimrc | 17 +++++++++++++++++ 3 files changed, 21 insertions(+) create mode 160000 .vim/bundle/vim-grammarous diff --git a/.gitmodules b/.gitmodules index e61305d..309ef88 100644 --- a/.gitmodules +++ b/.gitmodules @@ -124,3 +124,6 @@ [submodule ".vim/bundle/neoyank.vim"] path = .vim/bundle/neoyank.vim url = https://github.com/Shougo/neoyank.vim.git +[submodule ".vim/bundle/vim-grammarous"] + path = .vim/bundle/vim-grammarous + url = https://github.com/rhysd/vim-grammarous.git diff --git a/.vim/bundle/vim-grammarous b/.vim/bundle/vim-grammarous new file mode 160000 index 0000000..fc7e73f --- /dev/null +++ b/.vim/bundle/vim-grammarous @@ -0,0 +1 @@ +Subproject commit fc7e73f2af96fb1745887dabde9bf8b945d0273d 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 (grammarous-move-to-next-error) + nmap (grammarous-move-to-previous-error) +endfunction + +function! g:grammarous#hooks.on_reset(errs) abort + nunmap + nunmap +endfunction + " unite let g:unite_source_history_yank_enable = 1 call unite#filters#matcher_default#use(['matcher_fuzzy']) -- cgit v1.2.3-24-g4f1b