zapling / mason-conform.nvim

Automatically install formatters registered with conform.nvim via mason.nvim
Apache License 2.0
41 stars 1 forks source link

`clang-format` mapping? #6

Closed shyun3 closed 2 months ago

shyun3 commented 2 months ago

In conform, I have my c formatter specified as:

formatters_by_ft = {
  c = { "clang-format" },
},

But this plugin didn't auto-install clang-format. Then I noticed in the mapping that it is expecting clang_format as the name instead.

Was there a specific reason this was done? Could a mapping for clang-format be added? This works fine for conform and is also the actual name of the executable.

zapling commented 2 months ago

I think this is just a mistake on my part, I have pushed https://github.com/zapling/mason-conform.nvim/commit/40133b4bf3e0322e7983f20183a062ba4a6db122 that changes the name to clang-format. Thanks for the ticket!