nvim-lint: use postgres for ruff and add name for clippy
This commit is contained in:
parent
5ad5d4e4af
commit
7cacb020e0
1 changed files with 2 additions and 2 deletions
4
init.lua
4
init.lua
|
|
@ -281,6 +281,7 @@ local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
||||||
|
|
||||||
-- clippy --
|
-- clippy --
|
||||||
lint.linters.clippy = {
|
lint.linters.clippy = {
|
||||||
|
name = "clippy",
|
||||||
cmd = "cargo clippy",
|
cmd = "cargo clippy",
|
||||||
stdin = false,
|
stdin = false,
|
||||||
append_fname = true,
|
append_fname = true,
|
||||||
|
|
@ -295,8 +296,7 @@ lint.linters.clippy = {
|
||||||
lint.linters.sqlfluff.args = {
|
lint.linters.sqlfluff.args = {
|
||||||
"lint",
|
"lint",
|
||||||
"--format=json",
|
"--format=json",
|
||||||
-- note: users will have to replace the --dialect argument accordingly
|
"--dialect=postgres",
|
||||||
"--dialect=sqlite",
|
|
||||||
"-",
|
"-",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue