diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-09 13:17:01 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-05-09 13:17:01 +0200 |
commit | 0d0810e84dbab21fa55a8d2a947eb63d1352f873 (patch) | |
tree | 03d0a285b19eb33c9af4ce4b1143a8464b490e7b | |
parent | be0d9059f77799720891481975b9124e5de2992c (diff) | |
download | dotfiles-0d0810e84dbab21fa55a8d2a947eb63d1352f873.tar.gz dotfiles-0d0810e84dbab21fa55a8d2a947eb63d1352f873.tar.xz |
vim: Add vim-grammarous
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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']) |