feat: added prettier formatting to astro
This commit is contained in:
parent
78a54ae3e3
commit
5a04a7cd39
2 changed files with 6 additions and 1 deletions
|
|
@ -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'';
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue