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

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

Open
mawkler opened this issue Mar 23, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@mawkler
Copy link

mawkler commented Mar 23, 2021

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.

@mawkler mawkler added the bug Something isn't working label Mar 23, 2021
@aflyingpumpkin
Copy link

I was able to fix this by making sure native spell check was off before running :LanguageToolSetUp
I also use arch btw

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants