lukas-reineke / lsp-format.nvim

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

Treesitter integration #13

Closed colinxs closed 3 years ago

colinxs commented 3 years ago

Instead of manually specifying start_pattern and end_pattern, have you thought about using Treesitter to detect embedded languages? That's already an inherent feature of Treesitter (and is used for highlighting said embedded languages). I know nvim-treesitter is still in it's early stages, but it's rock solid for most common languages.

lukas-reineke commented 3 years ago

I answered in formatter.nvim If I implement this it will be over there, so closing it here