From 2dc7e3a6fbad8b333648361bfffd2a332e496ab6 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 30 Apr 2024 22:12:10 +0200 Subject: mention the new event hooks in the README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'README.md') 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` -- cgit v1.2.3