29 lines
537 B
Lua
29 lines
537 B
Lua
|
local null_ls = require "null-ls"
|
||
|
local b = null_ls.builtins
|
||
|
|
||
|
local sources = {
|
||
|
|
||
|
-- webdev stuff
|
||
|
b.formatting.deno_fmt,
|
||
|
b.formatting.prettierd.with { filetypes = { "html", "markdown", "css" } },
|
||
|
|
||
|
-- Lua
|
||
|
b.formatting.stylua,
|
||
|
b.diagnostics.luacheck.with { extra_args = { "--global vim" } },
|
||
|
|
||
|
-- Shell
|
||
|
b.formatting.shfmt,
|
||
|
b.diagnostics.shellcheck.with { diagnostics_format = "#{m} [#{c}]" },
|
||
|
}
|
||
|
|
||
|
local M = {}
|
||
|
|
||
|
M.setup = function()
|
||
|
null_ls.setup {
|
||
|
debug = true,
|
||
|
sources = sources,
|
||
|
}
|
||
|
end
|
||
|
|
||
|
return M
|