@@ -5,6 +5,8 @@
55, python3, boost, icu
66, ycmd, makeWrapper, rake
77, pythonPackages, python3Packages
8+, substituteAll
9+, languagetool
810, Cocoa ? null, git
911}:
1012
@@ -1405,7 +1407,16 @@ rec {
14051407 sha256 = "1mm8hd39q2sl4hi83c4zvrl27a8djr1pv35ch0pivg84ad9p7qq5";
14061408 };
14071409 dependencies = [];
1408−
1410+ # use `:GrammarousCheck` to initialize checking
1411+ # In neovim, you also want to use set
1412+ # let g:grammarous#show_first_error = 1
1413+ # see https://github.com/rhysd/vim-grammarous/issues/39
1414+ patches = [
1415+ (substituteAll {
1416+ src = ./patches/vim-grammarous/set_default_languagetool.patch;
1417+ inherit languagetool;
1418+ })
1419+ ];
14091420 };
14101421
14111422 vim-puppet = buildVimPluginFrom2Nix { # created by nix#NixDerivation