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