lukas-reineke / lsp-format.nvim

A wrapper around Neovims native LSP formatting.
564 stars 27 forks source link

Why is ^M added automatically when formatting #30

Closed lost22git closed 2 years ago

lost22git commented 2 years ago

image

lukas-reineke commented 2 years ago

Those are dos line endings. Your LSP probably formats them for windows, because it is powershell. https://en.wikipedia.org/wiki/Newline#Issues_with_different_newline_formats

This is not something this plugin has control over. You have to look at the LSP you are using to format.