2024-04-18 23:20:06 -07:00
|
|
|
-- stylua: ignore
|
|
|
|
--
|
|
|
|
-- defines configuration for formatters and cosmetic code enhancements (not including themes/pure cosmetic)
|
|
|
|
|
|
|
|
return {
|
|
|
|
-- fold long tailwindcss classes
|
|
|
|
{
|
|
|
|
'razak17/tailwind-fold.nvim',
|
|
|
|
opts= {},
|
|
|
|
dependencies = { 'nvim-treesitter/nvim-treesitter' },
|
|
|
|
ft = { 'html', 'svelte', 'astro', 'vue', 'typescriptreact', 'php', 'blade' },
|
|
|
|
},
|
2024-05-10 00:58:55 -07:00
|
|
|
{
|
|
|
|
"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" },
|
|
|
|
["toml"] = {"taplo"},
|
|
|
|
["tex"] = {"latexindent"},
|
|
|
|
["haskell"] = {"fourmolu"},
|
|
|
|
["nix"] = {"nixpkgs-fmt"},
|
|
|
|
["lua"] = {"stylua"},
|
|
|
|
},
|
2024-04-23 10:52:06 -07:00
|
|
|
},
|
2024-05-10 00:58:55 -07:00
|
|
|
}
|
2024-04-18 23:20:06 -07:00
|
|
|
}
|