Bhupesh-V / Bhupesh-V.github.io

My Internet Home ❤️
https://bhupesh.me
MIT License
2 stars 1 forks source link

Writing like a pro with vale & neovim #10

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Writing like a pro with vale & neovim

Learn how to setup and use vale, a syntax-aware prose linter with neovim for technical writing be it personal blogs or technical documentation.

https://bhupesh.me/writing-like-a-pro-with-vale-and-neovim/

atefBB commented 2 years ago

Hey, Thanks for the great tuto, I'm stuck with the config stuff ! Where to put this code ?
require("null-ls").setup({ sources = { require("null-ls").builtins.diagnostics.vale, }, }) Thank you !

Bhupesh-V commented 2 years ago

Hey, Thanks for the great tuto, I'm stuck with the config stuff ! Where to put this code ? require("null-ls").setup({ sources = { require("null-ls").builtins.diagnostics.vale, }, }) Thank you !

Hey If you use a init.lua for your vim config then you can copy and paste it there (after the Plug Import) Otherwise, if you use a init.vim or vimrc config, use the HERE doc as dictated in the tutorial. Hope this helps

changcui commented 2 years ago

Hello, great post! But I have set up the environment, but i cannot get any lint when I type a markdown file..

Bhupesh-V commented 2 years ago

Hello, great post! But I have set up the environment, but i cannot get any lint when I type a markdown file..

Hey did you create a .vale.ini file in your home directory, can you share the contents of that file?

changcui commented 2 years ago

image yeah i have create the file and copy the content from your post.

Bhupesh-V commented 2 years ago

@changcui Hey can you also check that the styles folder have rules downloaded for all the 5 sources? (If not please run the vale sync command to download them

sheldonth commented 2 years ago

When syncing, I'm seeing

$ vale sync
 SUCCESS  Downloaded package 'Google'
 SUCCESS  Downloaded package 'Readability'
 SUCCESS  Downloaded package 'alex'
 SUCCESS  Downloaded package 'proselint'
Downloading packages [4/5] █████████████████████████████████████████████████████████████████                  80% | 2sGet "IBM": unsupported protocol scheme ""

Using your .vale.ini code exactly. Any idea why that error throws?

Bhupesh-V commented 2 years ago

When syncing, I'm seeing

$ vale sync
 SUCCESS  Downloaded package 'Google'
 SUCCESS  Downloaded package 'Readability'
 SUCCESS  Downloaded package 'alex'
 SUCCESS  Downloaded package 'proselint'
Downloading packages [4/5] █████████████████████████████████████████████████████████████████                  80% | 2sGet "IBM": unsupported protocol scheme ""

Using your .vale.ini code exactly. Any idea why that error throws?

Hey, thanks for reporting this, looks like vale doesn't support downloading IBM styles automatically (the repo seems to be unmaintained https://github.com/errata-ai/IBM). Although you can try to download them manually (copy the IBM directory from repo to the styles folder)

pwalleni commented 2 years ago

Nice! But rewrapping text with gq stopped working, probably because Vale diagnostic messages are displayed next to each line. Any ideas on how to get gq to work?