init
This commit is contained in:
33
nvim/lua/plugins/extras/formatting/rustywind.lua
Normal file
33
nvim/lua/plugins/extras/formatting/rustywind.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"rustywind",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
local function add_formatters(tbl)
|
||||
for ft, formatters in pairs(tbl) do
|
||||
if opts.formatters_by_ft[ft] == nil then
|
||||
opts.formatters_by_ft[ft] = formatters
|
||||
else
|
||||
vim.list_extend(opts.formatters_by_ft[ft], formatters)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
add_formatters({
|
||||
["javascript"] = { "rustywind" },
|
||||
["javascriptreact"] = { "rustywind" },
|
||||
["typescript"] = { "rustywind" },
|
||||
["typescriptreact"] = { "rustywind" },
|
||||
["vue"] = { "rustywind" },
|
||||
["html"] = { "rustywind" },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user