lint: add sqlfluff and hadolint
This commit is contained in:
parent
83fec46f48
commit
615c758866
1 changed files with 3 additions and 1 deletions
4
init.lua
4
init.lua
|
|
@ -167,7 +167,7 @@ local servers = {
|
||||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.lsp.buf.format({ async = false })
|
vim.lsp.buf.format({ async = false })
|
||||||
cmd("Format")
|
cmd("FormatWriteLock")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -199,9 +199,11 @@ lint.linters.clippy = {
|
||||||
|
|
||||||
linters = {
|
linters = {
|
||||||
bash = { "shellcheck" },
|
bash = { "shellcheck" },
|
||||||
|
dockerfile = { "hadolint" },
|
||||||
go = { "golangcilint" },
|
go = { "golangcilint" },
|
||||||
python = { "flake8" },
|
python = { "flake8" },
|
||||||
rust = { "clippy" },
|
rust = { "clippy" },
|
||||||
|
sql = { "sqlfluff" },
|
||||||
yaml = { "yamllint" },
|
yaml = { "yamllint" },
|
||||||
}
|
}
|
||||||
-- set linters --
|
-- set linters --
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue