Files
dotfiles/private_dot_config/nvim/lua/custom/plugins/null-ls.lua
2022-11-25 10:36:46 +02:00

27 lines
409 B
Lua

local present, null_ls = pcall(require, "null-ls")
if not present then
return
end
local b = null_ls.builtins
local sources = {
-- webdev stuff
b.formatting.deno_fmt,
b.formatting.prettier,
-- Lua
b.formatting.stylua,
-- Shell
b.formatting.shfmt,
b.diagnostics.shellcheck.with { diagnostics_format = "#{m} [#{c}]" },
}
null_ls.setup {
debug = true,
sources = sources,
}