mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(prettier): use prettier instead of prettierd. Too many people get truncated files. Fixes #712. See #1735
This commit is contained in:
parent
53e1637a86
commit
57b504b9e8
1 changed files with 18 additions and 18 deletions
|
@ -2,7 +2,7 @@ return {
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
table.insert(opts.ensure_installed, "prettierd")
|
table.insert(opts.ensure_installed, "prettier")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ return {
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local nls = require("null-ls")
|
local nls = require("null-ls")
|
||||||
opts.sources = opts.sources or {}
|
opts.sources = opts.sources or {}
|
||||||
table.insert(opts.sources, nls.builtins.formatting.prettierd)
|
table.insert(opts.sources, nls.builtins.formatting.prettier)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -19,22 +19,22 @@ return {
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = {
|
opts = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
["javascript"] = { { "prettierd", "prettier" } },
|
["javascript"] = { "prettier" },
|
||||||
["javascriptreact"] = { { "prettierd", "prettier" } },
|
["javascriptreact"] = { "prettier" },
|
||||||
["typescript"] = { { "prettierd", "prettier" } },
|
["typescript"] = { "prettier" },
|
||||||
["typescriptreact"] = { { "prettierd", "prettier" } },
|
["typescriptreact"] = { "prettier" },
|
||||||
["vue"] = { { "prettierd", "prettier" } },
|
["vue"] = { "prettier" },
|
||||||
["css"] = { { "prettierd", "prettier" } },
|
["css"] = { "prettier" },
|
||||||
["scss"] = { { "prettierd", "prettier" } },
|
["scss"] = { "prettier" },
|
||||||
["less"] = { { "prettierd", "prettier" } },
|
["less"] = { "prettier" },
|
||||||
["html"] = { { "prettierd", "prettier" } },
|
["html"] = { "prettier" },
|
||||||
["json"] = { { "prettierd", "prettier" } },
|
["json"] = { "prettier" },
|
||||||
["jsonc"] = { { "prettierd", "prettier" } },
|
["jsonc"] = { "prettier" },
|
||||||
["yaml"] = { { "prettierd", "prettier" } },
|
["yaml"] = { "prettier" },
|
||||||
["markdown"] = { { "prettierd", "prettier" } },
|
["markdown"] = { "prettier" },
|
||||||
["markdown.mdx"] = { { "prettierd", "prettier" } },
|
["markdown.mdx"] = { "prettier" },
|
||||||
["graphql"] = { { "prettierd", "prettier" } },
|
["graphql"] = { "prettier" },
|
||||||
["handlebars"] = { { "prettierd", "prettier" } },
|
["handlebars"] = { "prettier" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue