lazyvim/lua/lazyvim/util
Iordanis Petkakis 03f1293e33
fix(util.lsp): pass formatters_by_ft to opts (#6894)
## Description
Here
c64a61734f/lua/lazyvim/util/lsp.lua (L50)
we call directly `conform.format` with our specific options.

`conform.nvim` also allows passing options such as `lsp_format` directly
to `formatter_by_ft` as also can be seen
[here](5420c4b5ea/doc/conform.txt (L20-L21)).
Those options are not passed when we call `conform.format(opts)` in the
LSP formatter.

So, we add these options. Also, fix the correct name for general format
options, since it had been changed at some time in `conform.nvim` and
that change made it to the plugin spec, but not here.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
Fixes #6893
<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

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

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2026-03-01 10:12:58 +01:00
..
cmp.lua feat(ai): added completion hooks for next edit suggestions 2025-09-26 15:57:00 +02:00
deprecated.lua feat(lsp): refactor lsp code to use Snacks.util.lsp.on 2025-10-25 16:56:19 +02:00
extras.lua fix(extras): disable import handling when loading :LazyExtras + changed some recommendations 2025-02-10 23:27:24 +01:00
format.lua feat(core)!: move a bunch of LazyVim features to snacks.nvim (#4706) 2024-11-07 15:54:47 +01:00
init.lua feat(lsp): lsp keymaps can now be configured with lsp-config.opts.servers['*'].keys like for lsp servers 2025-10-25 16:57:16 +02:00
inject.lua feat(util): set_upvalue 2024-05-16 21:25:51 +02:00
json.lua feat(defaults): new installs now default to snacks picker/explorer. Existing installs don't change. 2025-02-08 15:23:30 +01:00
lsp.lua fix(util.lsp): pass formatters_by_ft to opts (#6894) 2026-03-01 10:12:58 +01:00
lualine.lua feat(copilot-native): better lualine status 2025-09-25 11:11:40 +02:00
mini.lua feat(snacks)!: use snacks.scope indent objects in favor of custom mini.ai indent objects 2024-12-12 13:47:29 +01:00
news.lua fix(news): resolve news.txt from $VIMRUNTIME first 2026-03-01 09:17:53 +01:00
pick.lua feat(extras): big rework of default extras 2025-02-08 15:04:46 +01:00
plugin.lua fix(leap): update urls to new leap.nvim repo. Fixes #6958 2026-03-01 09:30:39 +01:00
root.lua fix(root): don't use fs_realpath on windows 2025-10-24 15:35:49 -07:00
terminal.lua fix(terminal): add -NoProfile to powershell shellcmdflag (#6757) 2025-11-06 12:40:40 +01:00
treesitter.lua fix(treesitter): remove node requirement 2025-10-31 17:28:02 +01:00