23 lines
402 B
Lua
23 lines
402 B
Lua
local present, null_ls = pcall(require, "null-ls")
|
|
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
local formatting = null_ls.builtins.formatting
|
|
local lint = null_ls.builtins.diagnostics
|
|
|
|
local sources = {
|
|
formatting.prettier,
|
|
formatting.stylua,
|
|
lint.ansiblelint.with({
|
|
filetypes = { "yaml" },
|
|
}),
|
|
lint.shellcheck,
|
|
lint.yamllint,
|
|
}
|
|
|
|
null_ls.setup {
|
|
debug = true,
|
|
sources = sources,
|
|
}
|