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 --
|
||||
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",
|
||||
"-",
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue