Closed petobens closed 11 months ago
I can also confirm that the injected formatter doesn't seem to be working on my end. I tested this with the latest Neovim nightly as well as stable and the injected formatters are not working on either.
Bisecting the commits, it looks like it is since the new function formatter resolution commit: https://github.com/stevearc/conform.nvim/commit/0bbe83830be5a07a1161bb1a23d7280310656177
I am trying to format a markdown file with injected Lua code. Here are the debug logs:
09:34:28[DEBUG] Running formatters on /home/mhalter3@icl.gtri.org/Documents/git/github.com/AstroNvim/docs/src/content/docs/configuration/core_plugins.md: { "prettierd", "injected" }
09:34:28[INFO] Run prettierd on /home/mhalter3@icl.gtri.org/Documents/git/github.com/AstroNvim/docs/src/content/docs/configuration/core_plugins.md
09:34:28[DEBUG] Run command: { "prettierd", "/home/mhalter3@icl.gtri.org/Documents/git/github.com/AstroNvim/docs/src/content/docs/configuration/core_plugins.md" }
09:34:28[DEBUG] Run CWD: /home/mhalter3@icl.gtri.org/Documents/git/github.com/AstroNvim/docs
09:34:28[DEBUG] prettierd exited with code 0
09:34:28[INFO] Run injected on /home/mhalter3@icl.gtri.org/Documents/git/github.com/AstroNvim/docs/src/content/docs/configuration/core_plugins.md
09:34:28[DEBUG] Injected format lua:13:116: { {
available = true,
command = "stylua",
cwd = "/home/mhalter3@icl.gtri.org/Documents/git/github.com/AstroNvim/docs",
name = "stylua"
} }
looks like it is getting a list of formatter tables rather than formatter names
Should be fixed, thanks for the report!
Thank you!
Neovim version (nvim -v)
NVIM v0.10.0-dev-1496+g4c8fdc018b
Operating system/version
Arch Linux
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
Describe the bug
The injected formatter doesn't appear to update the injected code in a markdown file
Steps To Reproduce
note there are closing backticks after the code block actually written as ``` (without the space)
:w
write the file.Expected Behavior
Get the code block formatted as
Minimal example file
No response
Minimal init.lua
Additional context