dpelle / vim-LanguageTool

A vim plugin for the LanguageTool grammar checker
280 stars 28 forks source link

Run checker only on code comments / strings (feature request) #28

Open gabriel-v opened 3 years ago

gabriel-v commented 3 years ago

Love the plugin, thanks for the work!

When writing code with verbose comments and/or in-code documentation (docstrings), it would help to be able to run the tool only on some configurable sections of the file.

I've tried a few things:

On selecting what sections to be checked and what not to be, we pretty much have two options:

With one of these available, the user would be able to set up different rule sets for different programming languages using autocmd FileType.

Edit: I see people trying to do this specifically for LaTeX: https://github.com/dpelle/vim-LanguageTool/pull/4

What do you think?