Releases: dpriedel/languagetool_languageserver
Releases · dpriedel/languagetool_languageserver
Version 2.0
This release is greatly refactored based on the pygls 1.1 examples.
Code is simplified and now also supports DidChange events too.
I use it primarily from Neovim via the built-in LSP client
Add something like the below to your LSP configurations.
langtoolls = {
autostart = false,
cmd = {
"/usr/local/bin/ltls_server.py",
"--languageModel",
"/util/langtool_ngrams",
"-l",
"en",
},
filetypes = { "text" },
root_dir = function()
return "."
end,
single_file_support = true,
},
I set 'autostart' to false so the server doesn't run every time I edit a text file -- it can take a while for the server to start if you have your ngrams on a slow disk.
Basic functionality works
This provides a working LSP interface to the LanguageTool application in http mode. It provided checking on file open and file save.