summarylogtreecommitdiffstats
path: root/languagetool.patch
diff options
context:
space:
mode:
authorAndrzej Giniewicz2015-07-07 20:19:33 +0200
committerAndrzej Giniewicz2015-07-07 20:19:33 +0200
commit5585e390aa2488d1c3e6e98f78e3c0131799a98a (patch)
tree183653341256655a63de3fc34b370089df7b32d3 /languagetool.patch
downloadaur-5585e390aa2488d1c3e6e98f78e3c0131799a98a.tar.gz
Initiam import
Diffstat (limited to 'languagetool.patch')
-rw-r--r--languagetool.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/languagetool.patch b/languagetool.patch
new file mode 100644
index 000000000000..8ac62f6ba6b0
--- /dev/null
+++ b/languagetool.patch
@@ -0,0 +1,36 @@
+--- plugin/LanguageTool.vim.orig 2014-05-01 16:10:07.000000000 +0200
++++ plugin/LanguageTool.vim 2014-05-01 16:11:27.000000000 +0200
+@@ -156,23 +156,6 @@
+ endif
+ endif
+ endif
+-
+- let s:languagetool_jar = exists("g:languagetool_jar")
+- \ ? g:languagetool_jar
+- \ : $HOME . '/languagetool-2.4.1/languagetool-commandline.jar'
+-
+- if !filereadable(s:languagetool_jar)
+- " Hmmm, can't find the jar file. Try again with expand() in case user
+- " set it up as: let g:languagetool_jar = '$HOME/.../languagetool-commandline.jar'
+- let l:languagetool_jar = expand(s:languagetool_jar)
+- if !filereadable(expand(l:languagetool_jar))
+- echomsg "LanguageTool cannot be found at: " . s:languagetool_jar
+- echomsg "You need to install LanguageTool and/or set up g:languagetool_jar"
+- echomsg "to indicate the location of the languagetool-commandline.jar file."
+- return -1
+- endif
+- let s:languagetool_jar = l:languagetool_jar
+- endif
+ return 0
+ endfunction
+
+@@ -236,8 +219,7 @@
+ let l:range = a:line1 . ',' . a:line2
+ silent exe l:range . 'w!' . l:tmpfilename
+
+- let l:languagetool_cmd = 'java'
+- \ . ' -jar ' . s:languagetool_jar
++ let l:languagetool_cmd = 'languagetool'
+ \ . ' -c ' . s:languagetool_encoding
+ \ . ' -d ' . s:languagetool_disable_rules
+ \ . ' -l ' . s:languagetool_lang