This is done by filtering out the errors that don't point to a place that has not a comment, a string or a doc face. The checker is added as the next checker of the main flycheck checker for the current mode
I still have some issues as to when the function flycheck-languagetool-flycheck-enable has to be used
The issue is that if languagetool is added as a checker before the main-mode finished loading, it's not added as a next checker for the main one and the function needs to be called again.
Fixes #22
If this seems good for you, I think an improvement would be to define a predicate function
This would allow to define different predicates for different modes (prog-mode don't have the same predicates as org-mode or markdown-mode for example)
This is done by filtering out the errors that don't point to a place that has not a comment, a string or a doc face. The checker is added as the next checker of the main flycheck checker for the current mode
I still have some issues as to when the function
flycheck-languagetool-flycheck-enable
has to be usedIn my current setup what I did is:
But this is not really good.
The issue is that if languagetool is added as a checker before the main-mode finished loading, it's not added as a next checker for the main one and the function needs to be called again.
Fixes #22
If this seems good for you, I think an improvement would be to define a predicate function
This would allow to define different predicates for different modes (prog-mode don't have the same predicates as org-mode or markdown-mode for example)