nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

Fix disable autoformatting

Open rollf opened this issue 5 months ago • 1 comments

This PR attempts to fix #91. This is done by renaming the user-defined conform.nvim functions FormatEnable/Disable/Toggle to ConformFormatEnable/Disable/Toggle. Doing so allows to access other functions named Format... which are provided in the global name space by lsp-format.nvim. The function names where the same.

In a second step, new functions are added, namely AllFormatEnable/Disable/Toggle which invoke the corresponding functions for both plugins. Thus, a single command can be used to change the behavior of both plugins.

lsp-format.nvim does not (yet?) allow disabling on a per-buffer basis. The All... functions do not differentiate between all or current buffer neither.

Renaming the functions is a breaking change. Anyone having mapped those function will now invoke the "wrong" ones (previously, the conform.nvim functionality was accessed, now it would be the one from lsp-format.nvim).

rollf avatar Sep 08 '25 11:09 rollf

@dc-tec Have you seen this PR here?

rollf avatar Oct 17 '25 06:10 rollf