vim-lsp
vim-lsp copied to clipboard
Auto DocumentFormatRange -> passing custom range
Hi,
Is there a supported way to pass a specific range when formatting ('[
-> ']
for using with InsertLeave / TestYankPost for example ?)
Reading https://github.com/prabirshrestha/vim-lsp/blob/master/plugin/lsp.vim#L134-L135 and https://github.com/prabirshrestha/vim-lsp/blob/master/autoload/lsp/internal/document_range_formatting.vim#L105-L111 makes me thinks that it's possible, but I'm not really sure how/ what args I should pass to :LspDocumentFormatRangeSync
I want to do this to format my buffer incrementally when modifying code. (If this is stupid for any reason, please tell me^)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If anyone has hints on this, I'm still trying to accomplish that :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.