1

Update generated neovim config

This commit is contained in:
2024-09-22 20:41:25 +02:00
parent 1743764e48
commit aa1271c42c
1247 changed files with 26512 additions and 15067 deletions

View File

@ -104,6 +104,7 @@ Other dedicated linters that are built-in are:
| [chktex][20] | `chktex` |
| [clang-tidy][23] | `clangtidy` |
| [clazy][30] | `clazy` |
| [clippy][clippy] | `clippy` |
| [clj-kondo][24] | `clj-kondo` |
| [cmakelint][cmakelint] | `cmakelint` |
| [codespell][18] | `codespell` |
@ -124,6 +125,7 @@ Other dedicated linters that are built-in are:
| [erb-lint][erb-lint] | `erb_lint` |
| [ESLint][25] | `eslint` |
| [eslint_d][37] | `eslint_d` |
| [eugene][eugene] | `eugene` |
| [fennel][fennel] | `fennel` |
| [fish][fish] | `fish` |
| [Flake8][13] | `flake8` |
@ -134,6 +136,7 @@ Other dedicated linters that are built-in are:
| [glslc][glslc] | `glslc` |
| [Golangci-lint][16] | `golangcilint` |
| [hadolint][28] | `hadolint` |
| [hledger][hledger] | `hledger` |
| [hlint][32] | `hlint` |
| [htmlhint][htmlhint] | `htmlhint` |
| [HTML Tidy][12] | `tidy` |
@ -197,6 +200,7 @@ Other dedicated linters that are built-in are:
| [statix check][33] | `statix` |
| [stylelint][29] | `stylelint` |
| [SwiftLint][swiftlint] | `swiftlint` |
| [systemd-analyze][systemd-analyze] | `systemd-analyze` |
| [systemdlint][systemdlint] | `systemdlint` |
| [tflint][tflint] | `tflint` |
| [tfsec][tfsec] | `tfsec` |
@ -273,15 +277,26 @@ The function takes two arguments: `errorformat` and `skeleton` (optional).
### from_pattern
Creates a parser function from a pattern.
```lua
parser = require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts)
```
The function allows to parse the linter's output using a Lua regular expression pattern.
### pattern
- pattern: The regular expression pattern applied on each line of the output
- groups: The groups specified by the pattern
The function allows to parse the linter's output using a pattern which can be either:
- A Lua pattern. See `:help lua-patterns`.
- A LPEG pattern object. See `:help vim.lpeg`.
- A function (`fun(line: string):string[]`). It takes one parameter - a line
from the linter output and must return a string array with the matches. The
array should be empty if there was no match.
### groups
The groups specify the result format of the pattern.
Available groups:
- `lnum`
@ -301,7 +316,11 @@ local pattern = '[^:]+:(%d+):(%d+):(%w+):(.+)'
local groups = { 'lnum', 'col', 'code', 'message' }
```
- severity: A mapping from severity codes to diagnostic codes
The captures in the pattern correspond to the group at the same position.
### severity
A mapping from severity codes to diagnostic codes
``` lua
default_severity = {
@ -312,18 +331,22 @@ default_severity = {
}
```
- defaults: The defaults diagnostic values
### defaults
The defaults diagnostic values
```lua
defaults = {["source"] = "mylint-name"}
```
- opts: Additional options
### opts
- `lnum_offset`: Added to `lnum`. Defaults to 0
- `end_lnum_offset`: Added to `end_lnum`. Defaults to 0
- `end_col_offset`: offset added to `end_col`. Defaults to `-1`, assuming
that the end-column position is exclusive.
Additional options
- `lnum_offset`: Added to `lnum`. Defaults to 0
- `end_lnum_offset`: Added to `end_lnum`. Defaults to 0
- `end_col_offset`: offset added to `end_col`. Defaults to `-1`, assuming
that the end-column position is exclusive.
## Customize built-in linters
@ -537,3 +560,7 @@ busted tests/
[swiftlint]: https://github.com/realm/SwiftLint
[tflint]: https://github.com/terraform-linters/tflint
[ameba]: https://github.com/crystal-ameba/ameba
[eugene]: https://github.com/kaaveland/eugene
[clippy]: https://github.com/rust-lang/rust-clippy
[hledger]: https://hledger.org/
[systemd-analyze]: https://man.archlinux.org/man/systemd-analyze.1