rhysd / vim-grammarous

A powerful grammar checker for Vim using LanguageTool.
1.1k stars 41 forks source link

Docker image? #82

Open kaihendry opened 5 years ago

kaihendry commented 5 years ago

Would be cool to try this out from a Docker image since I am not prepared to installed Java on my Archlinux system.

jpbruinsslot commented 4 years ago
let g:grammarous#languagetool_cmd = 'docker run -t --entrypoint java -v $HOME/.config/nvim/plugged/vim-grammarous/misc/LanguageTool-4.9:/LanguageTool -v /tmp:/tmp openjdk:8-jre-alpine -jar /LanguageTool/languagetool-commandline.jar $@'

Update the volume with the location of LanguageTool based on your pluginmanager. If someone knows how to pass in that automatically in your .vimrc / init.vim that would be helpful.

iazel commented 3 years ago

I would recommend trying Nix package manager, then you just have to run nix-env -iA nixpkgs.languagetool and let this plugin use it through:

let g:grammarous#languagetool_cmd = 'languagetool-commandline'