Add Text Linter Support like Alex and Proselint for Writers #2028
Replies: 4 comments
-
Maybe https://www.npmjs.com/package/coc-diagnostic could help. |
Beta Was this translation helpful? Give feedback.
-
Thank you @chemzqm for that link.
I am still working on GNU |
Beta Was this translation helpful? Give feedback.
-
I made up this config for "alex": {
"command": "alexjs",
"debounce": 200,
"isStderr": true,
"args": ["--stdin"],
"offsetLine": 0,
"offsetColumn": 0,
"sourceName": "alex.js",
"formatLines": 1,
"formatPattern": [
"^\\s*(\\d+):(\\d+)-(\\d+):(\\d+)\\s{2}([a-z]+)\\s{2}(.*?)\\s{2,}([a-z-]+)\\s{2,}([a-z-]+)$",
{
"line": 1,
"column": 2,
"endLine": 3,
"endColumn": 4,
"security" : 5,
"message": 6
}
],
"securities" : {
"warning": "warning",
"error": "error"
}
} You can add this to your |
Beta Was this translation helpful? Give feedback.
-
I was running into some CPU spikes and crashes with proselint when running many instances of nvim on macOS. I bumped up the |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I have been using
alex
andproselint
to check my writing for a while but I always get discouraged to do so because I have to exit vim and run the executable on the file by itself which is really inefficient when writing a long text. I have thought about ALE or syntastic which the README foralex
andproselint
says can be used to use them within vim but I don't want to install another linting plugin just for text since I love coc more for other things.Describe the solution you'd like
I think it would be nice if someone could figure out a coc-settings.json language server setup for the
alex
orproselint
executable. Even better an extension for text linting like whatcoc-clangd
usesclangd
.Describe alternatives you've considered
As I said I thought of ALE and syntastic which the README for
alex
andproselint
said has support. But I couldn't find any relevant documentation on github to achieve that, and again I don't want another linting program just for texts making my vim slow.Additional context
Other than
alex
andproselint
there are also things like GNUstyle
anddiction
which would work as well but I personally thinkalex
andproselint
is(Edit: are...see this is why I need text linting) more accurate and detailed.Beta Was this translation helpful? Give feedback.
All reactions