prabirshrestha / vim-lsp

async language server protocol plugin for vim and neovim
MIT License
3.1k stars 304 forks source link

how can I format visualized code #1488

Open wanghuibin0 opened 1 year ago

wanghuibin0 commented 1 year ago

I would like to map a key sequence to do the following thing: first I select a region of code, then I press the key sequence and automatically format the selected code region. How can I do this?

Jorengarenar commented 1 month ago

:LspDocumentRangeFormat?