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" }, { 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 --