1
0
Fork 0

nvim-lint: use postgres for ruff and add name for clippy

This commit is contained in:
Felipe 2023-08-02 01:31:51 -04:00
parent 5ad5d4e4af
commit 7cacb020e0
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -281,6 +281,7 @@ local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
-- clippy --
lint.linters.clippy = {
name = "clippy",
cmd = "cargo clippy",
stdin = false,
append_fname = true,
@ -295,8 +296,7 @@ lint.linters.clippy = {
lint.linters.sqlfluff.args = {
"lint",
"--format=json",
-- note: users will have to replace the --dialect argument accordingly
"--dialect=sqlite",
"--dialect=postgres",
"-",
}