aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-04-30 22:12:10 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-04-30 22:12:10 +0200
commit2dc7e3a6fbad8b333648361bfffd2a332e496ab6 (patch)
tree646439a9a1e7a91fb3c034d010d1cc5bbc81803e /README.md
parent78b629fe86dc074e114f552695e78d08048708b5 (diff)
downloadvis-lspc-2dc7e3a6fbad8b333648361bfffd2a332e496ab6.tar.gz
vis-lspc-2dc7e3a6fbad8b333648361bfffd2a332e496ab6.zip
mention the new event hooks in the README
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9948af6..994eb13 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ A language server protocol client for the [`vis` editor](https://github.com/mart
* `textDocument/hover`
* `textDocument/rename`
* `textDocument/formatting`
-* `[Diagnostics]`
+* `Diagnostics`
## What's not working
@@ -161,6 +161,8 @@ Additional fields are:
* `settings` - a table of arbitrary possibly nested data. It is sent in a `workspace/didChangeConfiguration` to the language server after initialization. It is also used to lookup configuration for the `workspace/configuratio` method call.
* `init_options` - table of arbitrary possibly nested data. It will be sent to the server as `initializationOptions` in the parameters of the `initialize` method call.
* `formatting_options` - table of configuration data as found in [the LSP specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_formatting). `tabSize` and `insertSpaces` are required.
+* `initialized_hook` - function called after sending the `initialized` notification. The first parameter is the language server.
+* `file_open_hook` - function called after sending the `textDocument/didOpen` notification. The first parameter is the language server.
**Example:** The language server configuration entry in the `ls_map` for `lua-language-server`