From 2719e586fcbbe63d6652605d2e3aeee22274e511 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 14 Jan 2023 16:21:22 +0100 Subject: support configuration and initializationOptions per language server Send language server settings after initialization via a workspace/didChangeConfiguration notification. Implement a workspace/configuration handler using the values stored in the language server settings. Send the init_options as initializationOptions in the initialize parameters. --- lspc.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lspc.lua') diff --git a/lspc.lua b/lspc.lua index 7894507..c8e00a1 100644 --- a/lspc.lua +++ b/lspc.lua @@ -41,7 +41,10 @@ local goto_methods_capabilities = { } local client_capabilites = { - workspace = {configuration = false}, + workspace = { + configuration = true, + didChangeConfiguration = {dynamicRegistration = false}, + }, textDocument = { synchronization = {dynamicRegistration = false, didSave = true}, -- ask the server to send us only plaintext completionItems -- cgit v1.2.3