How to set up vale as a linter for text in neovim
Oct 29, 2024. 150 words. 1 minute. In Tech. neovim vale linter
tl;dr:How to set up vale correctly by creating a config file and syncing it once.
This is just a quick fix for a linter setup problem that I would like to save for myself and anyone running into the same issue in the future.
After installing the vale linter for general text like Markdown, I got the following error every time any kind of text file was opened:
| |
It is a bit tricky to find out what is actually going on here. Some more analysis of log files reveals that some config file is not found.
I found the solution for the problem in this GitHub issue.
It comes down to creating a simple .vale.ini in ~/.config/vale/ for example with the following content:
| |
Then we simply run:
| |
And now it simply works.
Other posts related to this one: