conform.nvim
conform.nvim copied to clipboard
Disable trailing newline globally
Is there a way to prevent conform.nvim from adding trailing newlines at a global level? Some formatters allow disabling / customizing this behavior but not all formatters support it.
Is there a way to make conform.nvim strip trailing newlines on BufWritePost for all fileformats?
I'm also having problems with new lines at the end of files. In my case, I've set StyLua to format Lua files. By running stylua . on the command line, the formatter formats correctly (with no new line at the end). But, when calling formatting with Conform, even explicitly setting lsp_fallback to false, the code gets formatted with an ending new line.