lint: remove local clippy definition
This commit is contained in:
parent
500d6aae0b
commit
4f4d7a7985
1 changed files with 0 additions and 22 deletions
22
init.lua
22
init.lua
|
|
@ -403,28 +403,6 @@ vim.diagnostic.config({
|
||||||
|
|
||||||
---- nvim-lint ----
|
---- nvim-lint ----
|
||||||
local lint = require("lint")
|
local lint = require("lint")
|
||||||
local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
|
||||||
.. "error:%.%\\{-} %m,%W%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
|
||||||
.. "warning:%.%\\{-} %m,%C%f:%l %m,%-G,%-G"
|
|
||||||
.. "error: aborting %.%#,%-G"
|
|
||||||
.. "error: Could not compile %.%#,%E"
|
|
||||||
.. "error: %m,%Eerror[E%n]: %m,%-G"
|
|
||||||
.. "warning: the option `Z` is unstable %.%#,%W"
|
|
||||||
.. "warning: %m,%Inote: %m,%C %#--> %f:%l:%c"
|
|
||||||
|
|
||||||
-- clippy --
|
|
||||||
lint.linters.clippy = {
|
|
||||||
name = "clippy",
|
|
||||||
cmd = "cargo",
|
|
||||||
stdin = false,
|
|
||||||
append_fname = false,
|
|
||||||
args = { "clippy" },
|
|
||||||
stream = "stdout",
|
|
||||||
ignore_exitcode = true,
|
|
||||||
env = nil,
|
|
||||||
parser = require("lint.parser").from_errorformat(clippy_format),
|
|
||||||
}
|
|
||||||
|
|
||||||
-- sqlfluff --
|
-- sqlfluff --
|
||||||
lint.linters.sqlfluff.args = {
|
lint.linters.sqlfluff.args = {
|
||||||
"lint",
|
"lint",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue