mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 09:48:59 +02:00
## Description
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
This change makes it possible to configure other formatters for
filetypes supported by the prettier extra, for instance
```js
return {
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
css = { "stylelint" },
},
},
},
}
```
Currently the prettier extra overwrites any existing `formatters_by_ft`
for the filetypes it supports. I've changed it to use `table.insert`
[like the sql extra
does](
|
||
---|---|---|
.. | ||
compat | ||
extras | ||
lsp | ||
coding.lua | ||
colorscheme.lua | ||
editor.lua | ||
formatting.lua | ||
init.lua | ||
linting.lua | ||
treesitter.lua | ||
ui.lua | ||
util.lua | ||
xtras.lua |