Skip to content

Version 2.0

Latest
Compare
Choose a tag to compare
@dpriedel dpriedel released this 08 Oct 17:46
· 1 commit to main since this release

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.