LazyVim.LazyVim/lua/lazyvim/plugins/extras
Rick Harris 4ff36062dd
fix(prettier): keep existing formatters_by_ft (#4719)
## 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](75750be1c0/lua/lazyvim/plugins/extras/lang/sql.lua (L148-L149)).

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

None that I know of

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

N/A

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-07 16:11:36 +01:00
..
coding fix(copilot-chat): setup cmp conditionally (#4716) 2024-11-07 16:05:32 +01:00
dap fix(java): jdtls run with args (#4689) 2024-11-03 12:48:11 +01:00
editor fix(telescope): check for gmake if needed 2024-11-07 16:10:45 +01:00
formatting fix(prettier): keep existing formatters_by_ft (#4719) 2024-11-07 16:11:36 +01:00
lang feat(core)!: move a bunch of LazyVim features to snacks.nvim (#4706) 2024-11-07 15:54:47 +01:00
linting feat: use LazyVim everywhere instead of require("lazyvim.util") 2024-03-22 09:15:09 +01:00
lsp feat: moved neoconf.nvim to extras 2024-06-02 09:05:16 +02:00
test fix(neotest): properly initialize adapter with call table. Fixes #4538 2024-10-04 23:50:15 +02:00
ui feat(core)!: move a bunch of LazyVim features to snacks.nvim (#4706) 2024-11-07 15:54:47 +01:00
util feat(core)!: move a bunch of LazyVim features to snacks.nvim (#4706) 2024-11-07 15:54:47 +01:00
vscode.lua feat(vscode): make use of vscode builtin terminal (#4392) 2024-09-18 08:16:29 +02:00