Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Commit

Permalink
chore: autogen metadata and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-elias-alvarez authored and github-actions[bot] committed Jul 6, 2023
1 parent e45670a commit db09b6c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions doc/BUILTINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2148,6 +2148,23 @@ local sources = { null_ls.builtins.diagnostics.terraform_validate }
- Command: `terraform`
- Args: `{ "validate", "-json" }`

### [textidote](https://github.com/sylvainhalle/textidote)

Spelling, grammar and style checking on LaTeX documents.

#### Usage

```lua
local sources = { null_ls.builtins.diagnostics.textidote }
```

#### Defaults

- Filetypes: `{ "markdown", "tex" }`
- Methods: `diagnostics_on_open, diagnostics_on_save`
- Command: `textidote`
- Args: `{ "--read-all", "--output", "singleline", "--no-color", "--check", "en", "--quiet", "$FILENAME" }`

### [textlint](https://github.com/textlint/textlint)

The pluggable linting tool for text and Markdown.
Expand Down
3 changes: 3 additions & 0 deletions lua/null-ls/builtins/_meta/diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ return {
terraform_validate = {
filetypes = { "terraform", "tf", "terraform-vars" }
},
textidote = {
filetypes = { "markdown", "tex" }
},
textlint = {
filetypes = { "txt", "markdown" }
},
Expand Down
4 changes: 2 additions & 2 deletions lua/null-ls/builtins/_meta/filetype_map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ return {
},
markdown = {
code_actions = { "ltrs", "proselint" },
diagnostics = { "alex", "ltrs", "ltrs", "markdownlint", "markdownlint_cli2", "mdl", "proselint", "textlint", "vale", "write_good" },
diagnostics = { "alex", "ltrs", "ltrs", "markdownlint", "markdownlint_cli2", "mdl", "proselint", "textidote", "textlint", "vale", "write_good" },
formatting = { "cbfmt", "deno_fmt", "dprint", "markdown_toc", "markdownlint", "mdformat", "ocdc", "prettier", "prettier_d_slim", "prettier_eslint", "prettierd", "remark", "terrafmt", "textlint" },
hover = { "dictionary" }
},
Expand Down Expand Up @@ -427,7 +427,7 @@ return {
},
tex = {
code_actions = { "proselint" },
diagnostics = { "chktex", "proselint", "vale" },
diagnostics = { "chktex", "proselint", "textidote", "vale" },
formatting = { "latexindent" }
},
text = {
Expand Down

0 comments on commit db09b6c

Please sign in to comment.