From e83950a7149f364b653395cdd4d9446875a7f469 Mon Sep 17 00:00:00 2001 From: Michiel van den Heuvel Date: Fri, 16 Jun 2023 18:23:58 +0200 Subject: Add textDocument/formatting implementation This is tested with the Rust language server and the Lua one. Moving the cursor to the correct position afterwards works with Rust, but not with Lua. Being smarter about the ranges is probably necessary for Lua and might make other ones more robust. --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 2b98a91..b9d6cae 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ vis-lspc currently supports: * `textDocument/implementation` * `textDocument/hover` * `textDocument/rename` +* `textDocument/formatting` * `[Diagnostics]` ## Whats not working @@ -109,6 +110,7 @@ vis-lspc is in a early state, but if you are brave there are some default key bi # workspace edits lspc-rename - rename the identifier under the cursor to + lspc-format - format the file in the current window # development support lspc-hover - hover over the current line -- cgit v1.2.3