Skip to content
This repository was archived by the owner on Aug 21, 2022. It is now read-only.
This repository was archived by the owner on Aug 21, 2022. It is now read-only.

Spelling errors not found unless :LanguageToolCheck is called before :LanguageToolSetUp #15

@mawkler

Description

@mawkler

Describe the bug

I have a weird issue with getting LanguageTool to point out spelling errors. The only way I can get it to highlight them is like this:

  1. > nvim test.md
  2. :LanguageToolCheck (throws an error)
  3. :LanguageToolSetUp
  4. :LanguageToolCheck

The test.md file contains the following:

This plugn can uses job feature on Vim 8.0.27 (or later) or Neovim. It's enable asynchronous comand executin so you dont need to be blcked untill the check have been done on Vim8+ or Neovim.

If I skip step 2 the spelling errors are not discovered LanguageTool, and it only points out the "dont" (which is a grammar error) and nothing else. They don't show up in :LanguageToolSummary either.

This is my init.vim:

call plug#begin('~/.vim/bundle')
  Plug 'vigoux/LanguageTool.nvim'
call plug#end()

let g:languagetool_server_command = '/usr/bin/languagetool --http'

To Reproduce

Follow the steps described above, but skip step 2.

Expected behavior

Spelling errors are highlighted without doing step 2.

Screenshots

When all four steps are followed:
Screenshot from 2021-03-23 17-06-55

When step 2 is skipped:
Screenshot from 2021-03-23 17-07-50

I'm on Arch Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions