diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-04-30 22:12:10 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-04-30 22:12:10 +0200 |
| commit | 2dc7e3a6fbad8b333648361bfffd2a332e496ab6 (patch) | |
| tree | 646439a9a1e7a91fb3c034d010d1cc5bbc81803e /README.md | |
| parent | 78b629fe86dc074e114f552695e78d08048708b5 (diff) | |
| download | vis-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.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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` |
