No matter what I do it does not launch. i have changed the args to %file, %text, also commented it out. Could I receive some advice on how to config this differently?
Does not have to be diagnosticls, I actually prefer EFM, but I know diagnosticls has advertised support for languagetool
Also, whats the best way to install languagetool? I have tried installing from the Arch repo. If it is to use the standalone version, or from source, I dont know how to change the above in command section. would it be “java -jar /path/to/languagetool.jar”?
This is the last piece of the puzzle for me to config nvim for latex
of course its set up (for text and tex at the moment).
I just shared the languagetool config related snippet. diagnosticls is working correctly on all other linters and associated filetypes.
My only problem is languagetool
i cleared the log to make sure that I read it clean. Opened a filetype registered to this,twice.
Both times it just says
[ START ] 2021-04-20T13:10:33+0200 ] LSP logging initiated
[ WARN ] 2021-04-20T13:10:40+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:86 ] "method textDocument/completion is not supported by any of the servers registered for the current buffer"
So its the config problem in how I define languagetool ? because if it could not find the binary it would perhaps complain in the logs?
@fsouza I just tested it on a large variety of filetypes, and so far, diagnosticsls does launch languagetool but only for text filetypes. Not for markdown, nor for Tex or others. just *.txt files
Even for text files it only launches if the args are not the default “-” but “%file”
Has anyone gotten it working for Tex? or any other filetype except for txt?
Well the config works for text and markdown but not for Tex.
Also, languagetool for markdown is just ugly as it has problems with lists and other structural properties of markdown.
I have switched over to textidote for both markdown and tex. It recognizes the grammar of the programming language along with the grammar of natural language
well, textidote and languagetool work out of the box with diagnostic-ls. So maybe adding a guide similar to eslint+efm but for textidote+diagnlsticls could work. And documenting/providing-examples for some of the useful args?