neovim-dots/lua/plugins/formatting.lua

39 lines
1.1 KiB
Lua
Raw Normal View History

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' },
},
{
"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" },
2024-04-26 13:36:13 -07:00
["toml"] = {"taplo"},
},
},
}
2024-04-18 23:20:06 -07:00
}