Skip to content

Commit

Permalink
feat(prettier, prettierd): added svelte and astro filetypes (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero authored Apr 26, 2024
1 parent e22c380 commit 709a5e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/null-ls/builtins/formatting/prettier.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ return h.make_builtin({
url = "https://github.com/prettier/prettier",
description = [[Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.]],
notes = {
[[Supports more filetypes such as [Svelte](https://github.com/sveltejs/prettier-plugin-svelte) and [TOML](https://github.com/bd82/toml-tools/tree/master/packages/prettier-plugin-toml) via plugins. These filetypes are not enabled by default, but you can follow the instructions [here](BUILTIN_CONFIG.md#filetypes) to define your own list of filetypes.]],
[[[TOML](https://github.com/bd82/toml-tools/tree/master/packages/prettier-plugin-toml) via plugins. These filetypes are not enabled by default, but you can follow the instructions [here](BUILTIN_CONFIG.md#filetypes) to define your own list of filetypes.]],
[[To increase speed, you may want to try [prettierd](https://github.com/fsouza/prettierd). You can also set up [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) and format via [eslint_d](https://github.com/mantoni/eslint_d.js/).]],
},
},
Expand All @@ -34,6 +34,8 @@ return h.make_builtin({
"markdown.mdx",
"graphql",
"handlebars",
"svelte",
"astro",
},
generator_opts = {
command = "prettier",
Expand Down
2 changes: 2 additions & 0 deletions lua/null-ls/builtins/formatting/prettierd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ return h.make_builtin({
"markdown.mdx",
"graphql",
"handlebars",
"svelte",
"astro",
},
generator_opts = {
command = "prettierd",
Expand Down

0 comments on commit 709a5e5

Please sign in to comment.