feat(vale_ls): add reStructuredText to filetypes (#3439)

Vale supports parsing reStructuredText files, as documented here:
https://vale.sh/docs/topics/scoping/#restructuredtext

It uses rst2html in the background.

Signed-off-by: Antonin Godard <antoningodard@pm.me>
This commit is contained in:
Antonin Godard 2024-11-17 14:00:35 +01:00 committed by GitHub
parent 87c7c83ce6
commit a40c2fde8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'vale-ls' },
filetypes = { 'markdown', 'text', 'tex' },
filetypes = { 'markdown', 'text', 'tex', 'rst' },
root_dir = util.root_pattern '.vale.ini',
single_file_support = true,
},