aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichiel van den Heuvel <michielvdnheuvel@gmail.com>2023-06-16 18:23:58 +0200
committerMichiel van den Heuvel <michielvdnheuvel@gmail.com>2023-06-29 15:13:26 +0200
commite83950a7149f364b653395cdd4d9446875a7f469 (patch)
tree4358faec50ae6e77327dc56a653d03b68055b4dc /README.md
parent646f957bdb27f4157ad0d9815f8cfa1533db8f5f (diff)
downloadvis-lspc-e83950a7149f364b653395cdd4d9446875a7f469.tar.gz
vis-lspc-e83950a7149f364b653395cdd4d9446875a7f469.zip
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.
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
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 <new name> - rename the identifier under the cursor to <new name>
+ lspc-format - format the file in the current window
# development support
lspc-hover - hover over the current line