Merge pull request #31902 from Mic92/vim-grammarous

vimPlugins.vim-grammarous: set languagetool path
This commit is contained in:
Jörg Thalheim 2017-11-22 08:00:12 +00:00 committed by GitHub
commit 565d92a10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 1 deletions

View File

@ -5,6 +5,8 @@
, python3, boost, icu
, ycmd, makeWrapper, rake
, pythonPackages, python3Packages
, substituteAll
, languagetool
, Cocoa ? null, git
}:
@ -1405,7 +1407,16 @@ rec {
sha256 = "1mm8hd39q2sl4hi83c4zvrl27a8djr1pv35ch0pivg84ad9p7qq5";
};
dependencies = [];
# use `:GrammarousCheck` to initialize checking
# In neovim, you also want to use set
# let g:grammarous#show_first_error = 1
# see https://github.com/rhysd/vim-grammarous/issues/39
patches = [
(substituteAll {
src = ./patches/vim-grammarous/set_default_languagetool.patch;
inherit languagetool;
})
];
};
vim-puppet = buildVimPluginFrom2Nix { # created by nix#NixDerivation

View File

@ -0,0 +1,11 @@
--- vim-grammarous-51ef519.org/autoload/grammarous.vim 1970-01-01 01:00:01.000000000 +0100
+++ vim-grammarous-51ef519/autoload/grammarous.vim 2017-11-21 16:33:27.473403322 +0000
@@ -22,7 +22,7 @@
let g:grammarous#enable_spell_check = get(g:, 'grammarous#enable_spell_check', 0)
let g:grammarous#move_to_first_error = get(g:, 'grammarous#move_to_first_error', 1)
let g:grammarous#hooks = get(g:, 'grammarous#hooks', {})
-let g:grammarous#languagetool_cmd = get(g:, 'grammarous#languagetool_cmd', '')
+let g:grammarous#languagetool_cmd = get(g:, 'grammarous#languagetool_cmd', '@languagetool@/bin/languagetool-commandline')
let g:grammarous#show_first_error = get(g:, 'grammarous#show_first_error', 0)
highlight default link GrammarousError SpellBad

View File

@ -0,0 +1,10 @@
# use `:GrammarousCheck` to initialize checking
# In neovim, you also want to use set
# let g:grammarous#show_first_error = 1
# see https://github.com/rhysd/vim-grammarous/issues/39
patches = [
(substituteAll {
src = ./patches/vim-grammarous/set_default_languagetool.patch;
inherit languagetool;
})
];