Disabling autoformat doesn't work
Hi,
I believe the FormatDisable / FormatEnable commands do not work. After executing :FormatDisable, the buffer still gets formatted. However, :lua vim.g.disable_autoformat=true allows to correctly disable formatting (as expected).
I'm suspecting the usage of lsp-format (a plugin that is enabled here) causes this as it defines the same commands (but I'm only guessing).
Thanks for sharing your config!
EDIT: Changed wording for neutrality
In this video, the buffer is auto-formated even though :FormatDisable is invoked. I believe this is because lsp-format's FormatDisable is invoked and it does not cause conforn.nvim to not format. However, disabling via the variable works.
Thanks @rollf for the feedback. Will pick this up next week. Pretty swamped with work atm. Appreciate the input!
Hey, I'd like to get this fixed. If you have an idea, I'm happy to propose a PR.
Hey, I'd like to get this fixed. If you have an idea, I'm happy to propose a PR.
Please feel free to shoot in a PR! This one slipped my mind, sorry for that.
@dc-tec I attempted a fix here.