doc/lsp.txt | 16 +++++++++++++++- diff --git a/doc/lsp.txt b/doc/lsp.txt index 1a7313e9ee0be0469a3ecf2b791c814360234e39..370a420c65da0b1a743f1aa32682af6c774c63d6 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -284,7 +284,21 @@ (Optional) some lsp servers (e.g. typescript-language-server) will send additional notifications which you might want to silence or handle. The provided notification handlers will be called with a - reference to the "lspserver" and the "reply". + reference to the "lspserver" and the "reply". > + + vim9script + g:LspAddServer([{ + filetype: ['javascript', 'typescript'], + path: '/usr/local/bin/typescript-language-server', + args: ['--stdio'], + customNotificationHandlers: { + '$/typescriptVersion': (lspserver, reply) => { + echom printf("TypeScript Version = %s", + reply.params.version) + } + } + }]) +< *lsp-cfg-omnicompl* omnicompl (Optional) a boolean value that enables (true) or disables (false) omni-completion for this file