dotfiles/.config/nvim/lua/plugins/null-ls.lua

18 lines
616 B
Lua
Raw Normal View History

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,
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
}),
}
})