You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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