|
1 | 1 | return { |
2 | 2 | { import = "astrocommunity.pack.json" }, |
| 3 | + { |
| 4 | + "AstroNvim/astrocore", |
| 5 | + ---@type AstroCoreOpts |
| 6 | + opts = { filetypes = { extension = { |
| 7 | + pcss = "postcss", |
| 8 | + postcss = "postcss", |
| 9 | + } } }, |
| 10 | + }, |
3 | 11 | { |
4 | 12 | "nvim-treesitter/nvim-treesitter", |
5 | 13 | optional = true, |
6 | 14 | opts = function(_, opts) |
7 | 15 | if opts.ensure_installed ~= "all" then |
8 | | - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "css" }) |
| 16 | + opts.ensure_installed = |
| 17 | + require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "css", "scss" }) |
9 | 18 | end |
| 19 | + vim.treesitter.language.register("scss", "less") |
| 20 | + vim.treesitter.language.register("scss", "postcss") |
10 | 21 | end, |
11 | 22 | }, |
12 | 23 | { |
@@ -52,6 +63,16 @@ return { |
52 | 63 | css = { "prettierd", "prettier", stop_after_first = true }, |
53 | 64 | scss = { "prettierd", "prettier", stop_after_first = true }, |
54 | 65 | less = { "prettierd", "prettier", stop_after_first = true }, |
| 66 | + postcss = { "prettierd", "prettier", stop_after_first = true }, |
| 67 | + }, |
| 68 | + }, |
| 69 | + }, |
| 70 | + { |
| 71 | + "echasnovski/mini.icons", |
| 72 | + optional = true, |
| 73 | + opts = { |
| 74 | + filetype = { |
| 75 | + postcss = { glyph = "", hl = "MiniIconsOrange" }, |
55 | 76 | }, |
56 | 77 | }, |
57 | 78 | }, |
|
0 commit comments