dotfiles/.config/nvim/lua/plugins/extras/formatting/rustfmt.lua
Sergio Laín f9d52ab208
♻️ refactor(nvim): big change in adding formatters and linters
all the formatters and linters are dynamically added, and they are going to the extras modules
2023-11-16 15:00:10 +01:00

10 lines
231 B
Lua

return {
{
"stevearc/conform.nvim",
opts = function(_, opts)
opts.formatters_by_ft.rust = opts.formatters_by_ft.rust or {}
table.insert(opts.formatters_by_ft.rust, "rustfmt")
return opts
end,
},
}