Skip to content

Commit

Permalink
fix(conform-nvim): fix formatters_by_ft definitions (#1129)
Browse files Browse the repository at this point in the history
* fix(conform-nvim): fix formatters_by_ft definitions

* feedback: add stop_after_first statements

* Update lua/astrocommunity/pack/go/init.lua

Co-authored-by: Micah Halter <[email protected]>

* Update lua/astrocommunity/pack/markdown/init.lua

Co-authored-by: Micah Halter <[email protected]>

* Update lua/astrocommunity/pack/python/init.lua

Co-authored-by: Micah Halter <[email protected]>

* Update lua/astrocommunity/pack/python-ruff/init.lua

Co-authored-by: Micah Halter <[email protected]>

---------

Co-authored-by: Micah Halter <[email protected]>
  • Loading branch information
lucazz and mehalter authored Jul 25, 2024
1 parent d00eed8 commit e7de18b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/ansible/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ return {
optional = true,
opts = {
formatters_by_ft = {
["yaml.ansible"] = { { "prettierd", "prettier" } },
["yaml.ansible"] = { "prettierd", "prettier", stop_after_first = true },
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/docker/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ return {
optional = true,
opts = {
formatters_by_ft = {
["yaml.docker-compose"] = { { "prettierd", "prettier" } },
["yaml.docker-compose"] = { "prettierd", "prettier", stop_after_first = true },
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/helm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ return {
optional = true,
opts = {
formatters_by_ft = {
helm = { { "prettierd", "prettier" } },
helm = { "prettierd", "prettier", stop_after_first = true },
},
},
},
Expand Down
8 changes: 4 additions & 4 deletions lua/astrocommunity/pack/html-css/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ return {
optional = true,
opts = {
formatters_by_ft = {
html = { { "prettierd", "prettier" } },
css = { { "prettierd", "prettier" } },
scss = { { "prettierd", "prettier" } },
less = { { "prettierd", "prettier" } },
html = { "prettierd", "prettier", stop_after_first = true },
css = { "prettierd", "prettier", stop_after_first = true },
scss = { "prettierd", "prettier", stop_after_first = true },
less = { "prettierd", "prettier", stop_after_first = true },
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions lua/astrocommunity/pack/markdown/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ return {
optional = true,
opts = {
formatters_by_ft = {
markdown = { { "prettierd", "prettier" } },
["markdown.mdx"] = { { "prettierd", "prettier" } },
markdown = { "prettierd", "prettier", stop_after_first = true },
["markdown.mdx"] = { "prettierd", "prettier", stop_after_first = true },
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/yaml/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ return {
optional = true,
opts = {
formatters_by_ft = {
yaml = { { "prettierd", "prettier" } },
yaml = { "prettierd", "prettier", stop_after_first = true },
},
},
},
Expand Down

0 comments on commit e7de18b

Please sign in to comment.