Open jordan-bravo opened 1 year ago
I guess the problem is in a missing comma after fallback_formatter = { ... }
. But you don't need to copy everything in here to your config. It just demonstrates various setups, which are possible.
Thanks @faergeek
Hi @jordan-bravo, yeah the config in the doc was just an example of what can be done, perhaps I should clarify that (not sure how). are you still having an issue or has this been solved?
I couldn't get it to work so I ended up using lsp-format.nvim as an alternative.
Could you please give an example of a minimum working config for format-on-save.nvim
? That would be very helpful, thank you in advance.
I followed the README to install
format-on-save.nvim
and Neovim is throwing an error when it starts up:Here is the contents of the file
~/.config/nvim/lua/user/plugins/format-on-save.lua
, which I copied from the README. Am I doing something incorrectly? My plugin manager islazy.nvim
.