diff options
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | .vim/bundle/vim-grammarous | 0 | ||||
-rw-r--r-- | .vimrc | 17 |
3 files changed, 20 insertions, 0 deletions
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 +Subproject fc7e73f2af96fb1745887dabde9bf8b945d0273 @@ -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']) |