init
This commit is contained in:
46
nvim/lua/plugins/extras/formatting/prettier-extended.lua
Normal file
46
nvim/lua/plugins/extras/formatting/prettier-extended.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
local prettier = { "prettierd", "prettier", stop_after_first = true }
|
||||
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"prettierd",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
optional = true,
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
["javascript"] = prettier,
|
||||
["javascriptreact"] = prettier,
|
||||
["typescript"] = prettier,
|
||||
["typescriptreact"] = prettier,
|
||||
["vue"] = prettier,
|
||||
["css"] = prettier,
|
||||
["scss"] = prettier,
|
||||
["less"] = prettier,
|
||||
["html"] = prettier,
|
||||
["json"] = prettier,
|
||||
["jsonc"] = prettier,
|
||||
["yaml"] = prettier,
|
||||
["markdown"] = prettier,
|
||||
["markdown.mdx"] = prettier,
|
||||
["graphql"] = prettier,
|
||||
["handlebars"] = prettier,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"prettier",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user