diff options
author | pommicket <pommicket@gmail.com> | 2022-12-29 10:52:41 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-29 10:52:41 -0500 |
commit | 1f9cd2a40d72d7982e8a9ff93e5ad432e14accc3 (patch) | |
tree | d307d716014ba0bf336fe338f7fd981bade5e6fb /lsp-parse.c | |
parent | 143387f72d255613ab774daaeaeebdd31fa16256 (diff) |
fix autocomplete, start hover
Diffstat (limited to 'lsp-parse.c')
-rw-r--r-- | lsp-parse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lsp-parse.c b/lsp-parse.c index b5f687f..555a62a 100644 --- a/lsp-parse.c +++ b/lsp-parse.c @@ -127,6 +127,12 @@ static void parse_capabilities(LSP *lsp, const JSON *json, JSONObject capabiliti arr_add(lsp->signature_help_retrigger_chars, '>'); } + // check for hover support + JSONValue hover_value = json_object_get(json, capabilities, "hoverProvider"); + if (hover_value.type != JSON_UNDEFINED) { + cap->hover_support = true; + } + JSONObject workspace = json_object_get_object(json, capabilities, "workspace"); // check WorkspaceFoldersServerCapabilities JSONObject workspace_folders = json_object_get_object(json, workspace, "workspaceFolders"); |