2022-12-15 04:18:13 +00:00
|
|
|
local null_ls = require("null-ls")
|
|
|
|
|
|
|
|
null_ls.setup({
|
2023-06-03 23:32:54 +01:00
|
|
|
sources = {
|
|
|
|
null_ls.builtins.formatting.rustfmt,
|
2023-03-07 21:48:39 +00:00
|
|
|
null_ls.builtins.formatting.stylish_haskell,
|
|
|
|
null_ls.builtins.formatting.fourmolu,
|
2023-05-21 20:18:09 +01:00
|
|
|
null_ls.builtins.formatting.blue,
|
2023-09-18 07:20:52 +01:00
|
|
|
null_ls.builtins.formatting.gofmt,
|
2023-06-03 23:32:54 +01:00
|
|
|
null_ls.builtins.formatting.sql_formatter.with({
|
|
|
|
extra_args = { "--config", "/home/afonso/.config/nvim/lua/plugins/sql_formatter.json"}
|
|
|
|
}),
|
|
|
|
null_ls.builtins.formatting.prettierd.with({
|
2023-09-18 07:20:52 +01:00
|
|
|
filetypes = { "html", "json", "css", "js", "yaml", "markdown" },
|
2023-06-03 23:32:54 +01:00
|
|
|
}),
|
|
|
|
}
|
2022-12-15 04:18:13 +00:00
|
|
|
})
|