coc-diagnostic icon indicating copy to clipboard operation
coc-diagnostic copied to clipboard

Feature request: specific file-save only linters

Open oblitum opened this issue 5 years ago • 6 comments

I wished I could set some specific linter to run just on file-save. Coc is currently in default mode (diagnostic on insert leave), which is fine for all language servers, and some light linters of coc-diagnostic, but for example, the textidote tool takes too much processing to check Markdown/LaTeX, so I wished just this one to run on file-save only.

oblitum avatar Jan 11 '21 11:01 oblitum

Make senses

iamcco avatar Jan 12 '21 03:01 iamcco

I have an LSP server module front end to LanguageTool at: https://github.com/dpriedel/languagetool_languageserver.

It runs LanguageTool in http mode on the local machine.

It is a Python program which only requires a recent version of pygls.

I do not have an installer for it but it is just 1 module.

I also have a coc.nvim extension at: https://github.com/dpriedel/coc_ltls

Also, no installer -- I don't work with JS applications much. It works on file open and save. It can be configured using CocConfig. If you have coc.json extension, you can get prompts for ltls. settings.

I've been using it while I edit my wife's novel and it works fine for me.

Let me know if you have questions.

Dave Riedel

dpriedel avatar Aug 20 '21 12:08 dpriedel

@dpriedel that's nice, but, I wished that for TeXtidote, which better wraps Language Tool for LaTeX/Markdown authoring.

oblitum avatar Aug 20 '21 18:08 oblitum

Yes it does but I'm using minimal LaTeX markup so I'm OK with a simpler interface

dpriedel avatar Aug 20 '21 18:08 dpriedel

@dpriedel fyi, I just published coc-ltex, you can simply :CocInstall it :) It's much better than TeXtidote or raw Language Tool.

oblitum avatar Sep 05 '21 20:09 oblitum

Any progress ?

sisrfeng avatar Feb 16 '22 13:02 sisrfeng