Skip to content

Commit db09b6c

Browse files
chore: autogen metadata and docs
1 parent e45670a commit db09b6c

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

doc/BUILTINS.md

+17
Original file line numberDiff line numberDiff line change
@@ -2148,6 +2148,23 @@ local sources = { null_ls.builtins.diagnostics.terraform_validate }
21482148
- Command: `terraform`
21492149
- Args: `{ "validate", "-json" }`
21502150

2151+
### [textidote](https://github.com/sylvainhalle/textidote)
2152+
2153+
Spelling, grammar and style checking on LaTeX documents.
2154+
2155+
#### Usage
2156+
2157+
```lua
2158+
local sources = { null_ls.builtins.diagnostics.textidote }
2159+
```
2160+
2161+
#### Defaults
2162+
2163+
- Filetypes: `{ "markdown", "tex" }`
2164+
- Methods: `diagnostics_on_open, diagnostics_on_save`
2165+
- Command: `textidote`
2166+
- Args: `{ "--read-all", "--output", "singleline", "--no-color", "--check", "en", "--quiet", "$FILENAME" }`
2167+
21512168
### [textlint](https://github.com/textlint/textlint)
21522169

21532170
The pluggable linting tool for text and Markdown.

lua/null-ls/builtins/_meta/diagnostics.lua

+3
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ return {
286286
terraform_validate = {
287287
filetypes = { "terraform", "tf", "terraform-vars" }
288288
},
289+
textidote = {
290+
filetypes = { "markdown", "tex" }
291+
},
289292
textlint = {
290293
filetypes = { "txt", "markdown" }
291294
},

lua/null-ls/builtins/_meta/filetype_map.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ return {
248248
},
249249
markdown = {
250250
code_actions = { "ltrs", "proselint" },
251-
diagnostics = { "alex", "ltrs", "ltrs", "markdownlint", "markdownlint_cli2", "mdl", "proselint", "textlint", "vale", "write_good" },
251+
diagnostics = { "alex", "ltrs", "ltrs", "markdownlint", "markdownlint_cli2", "mdl", "proselint", "textidote", "textlint", "vale", "write_good" },
252252
formatting = { "cbfmt", "deno_fmt", "dprint", "markdown_toc", "markdownlint", "mdformat", "ocdc", "prettier", "prettier_d_slim", "prettier_eslint", "prettierd", "remark", "terrafmt", "textlint" },
253253
hover = { "dictionary" }
254254
},
@@ -427,7 +427,7 @@ return {
427427
},
428428
tex = {
429429
code_actions = { "proselint" },
430-
diagnostics = { "chktex", "proselint", "vale" },
430+
diagnostics = { "chktex", "proselint", "textidote", "vale" },
431431
formatting = { "latexindent" }
432432
},
433433
text = {

0 commit comments

Comments
 (0)