install.fairie/home/dot_local/share/nvchad/configs/null-ls.lua

18 lines
435 B
Lua
Raw Normal View History

2023-07-17 13:40:40 -07:00
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,
}