feat: added prettier formatting to astro

This commit is contained in:
Ceferino Patino 2025-06-11 08:19:52 -05:00
commit 5a04a7cd39
Signed by: c4patino
SSH key fingerprint: SHA256:9fQ9TsujGrdNNi76mnsu63v7dS5JOmHRZEqBOl49OR8
2 changed files with 6 additions and 1 deletions

View file

@ -6,7 +6,7 @@
}
{
event = ["FileType"];
pattern = ["nix" "typescript" "javascript" "typescriptreact" "javascriptreact"];
pattern = ["nix" "typescript" "javascript" "typescriptreact" "javascriptreact" "astro"];
callback.__raw = ''function() vim.opt_local.tabstop = 2; vim.opt_local.shiftwidth = 2; vim.opt_local.expandtab = true; end'';
}
];

View file

@ -30,6 +30,11 @@
};
formatters_by_ft = {
astro = {
__unkeyed-1 = "prettierd";
__unkeyed-2 = "prettier";
stop_after_first = true;
};
javascript = {
__unkeyed-1 = "prettierd";
__unkeyed-2 = "prettier";