install.fairie/home/dot_local/share/nvchad/configs/null-ls.lua
Brian Zalewski 27e3cd3388 Latest
2023-07-17 20:40:40 +00:00

18 lines
No EOL
435 B
Lua

local null_ls = require "null-ls"
local format = null_ls.builtins.formatting
local lint = null_ls.builtins.diagnostics
local sources = {
-- webdev stuff
format.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
format.prettier.with { filetypes = { "html", "markdown", "css", "astro" } }, -- so prettier works only on these filetypes
-- Lua
format.stylua,
}
null_ls.setup {
debug = true,
sources = sources,
}