nvim-config/lua/configs/null-ls.lua

24 lines
402 B
Lua
Raw Normal View History

2023-08-24 11:54:45 +00:00
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,
}