43 lines
1.3 KiB
Lua
43 lines
1.3 KiB
Lua
-- 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' },
|
|
},
|
|
{
|
|
"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"},
|
|
["typst"] = {"typstfmt"}
|
|
},
|
|
},
|
|
}
|
|
}
|