1
0
Fork 0

lint: add sqlfluff and hadolint

This commit is contained in:
Felipe 2023-04-17 15:52:33 -04:00
parent 83fec46f48
commit 615c758866
Signed by: pitbuster
SSH key fingerprint: SHA256:OM3HeVSA96adfy2Gi8OhZkQBY67P88LoJUwkeVoTArQ

View file

@ -167,7 +167,7 @@ local servers = {
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
callback = function()
vim.lsp.buf.format({ async = false })
cmd("Format")
cmd("FormatWriteLock")
end,
})
@ -199,9 +199,11 @@ lint.linters.clippy = {
linters = {
bash = { "shellcheck" },
dockerfile = { "hadolint" },
go = { "golangcilint" },
python = { "flake8" },
rust = { "clippy" },
sql = { "sqlfluff" },
yaml = { "yamllint" },
}
-- set linters --