mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-15 16:51:33 +00:00
change prettier formatter to prettierd
This commit is contained in:
@ -10,24 +10,25 @@ return {
|
|||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
go = { "goimports", "gofumpt" },
|
go = { "goimports", "gofumpt" },
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
javascript = { "prettier" },
|
javascript = { "prettierd" },
|
||||||
typescript = { "prettier" },
|
typescript = { "prettierd" },
|
||||||
javascriptreact = { "prettier" },
|
javascriptreact = { "prettierd" },
|
||||||
typescriptreact = { "prettier" },
|
typescriptreact = { "prettierd" },
|
||||||
svelte = { "prettier" },
|
svelte = { "prettierd" },
|
||||||
css = { "prettier" },
|
css = { "prettierd" },
|
||||||
less = { "prettier" },
|
less = { "prettierd" },
|
||||||
scss = { "prettier" },
|
scss = { "prettierd" },
|
||||||
html = { "prettier" },
|
html = { "prettierd" },
|
||||||
json = { "prettier" },
|
json = { "prettierd" },
|
||||||
yaml = { "prettier" },
|
yaml = { "prettierd" },
|
||||||
["markdown"] = { "prettier" },
|
["markdown"] = { "prettierd" },
|
||||||
["markdown.mdx"] = { "prettier" },
|
["markdown.mdx"] = { "prettierd" },
|
||||||
graphql = { "prettier" },
|
graphql = { "prettierd" },
|
||||||
python = { "isort", "black" },
|
python = { "isort", "black" },
|
||||||
php = { "intelephense" },
|
php = { "intelephense" },
|
||||||
c = { "clang-format" },
|
c = { "clang-format" },
|
||||||
rust = { "rustfmt", lsp_format = "fallback" },
|
rust = { "rustfmt", lsp_format = "fallback" },
|
||||||
|
toml = { "taplo" },
|
||||||
-- Use the "*" filetype to run formatters on all filetypes.
|
-- Use the "*" filetype to run formatters on all filetypes.
|
||||||
-- ["*"] = { "codespell" },
|
-- ["*"] = { "codespell" },
|
||||||
-- Use the "_" filetype to run formatters on filetypes that don't
|
-- Use the "_" filetype to run formatters on filetypes that don't
|
||||||
@ -67,8 +68,8 @@ return {
|
|||||||
teal = "tl",
|
teal = "tl",
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
-- Use a specific prettier parser for a filetype
|
-- Use a specific prettierd parser for a filetype
|
||||||
-- Otherwise, prettier will try to infer the parser from the file name
|
-- Otherwise, prettierd will try to infer the parser from the file name
|
||||||
ft_parsers = {
|
ft_parsers = {
|
||||||
-- javascript = "babel",
|
-- javascript = "babel",
|
||||||
-- javascriptreact = "babel",
|
-- javascriptreact = "babel",
|
||||||
@ -87,7 +88,7 @@ return {
|
|||||||
-- graphql = "graphql",
|
-- graphql = "graphql",
|
||||||
-- handlebars = "glimmer",
|
-- handlebars = "glimmer",
|
||||||
},
|
},
|
||||||
-- Use a specific prettier parser for a file extension
|
-- Use a specific prettierd parser for a file extension
|
||||||
ext_parsers = {
|
ext_parsers = {
|
||||||
-- qmd = "markdown",
|
-- qmd = "markdown",
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user