diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-20 11:45:18 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-20 11:45:18 +0100 |
| commit | 00250c1ac0ea4a7b7ac3a7a554b32fa7a2babf8d (patch) | |
| tree | f64e913da8f461d72517226d45fbf97d02177682 /init.lua | |
| parent | e6afa5938e56dd15fa89c1ede5822a385d01b1c4 (diff) | |
| download | vis-lspc-00250c1ac0ea4a7b7ac3a7a554b32fa7a2babf8d.tar.gz vis-lspc-00250c1ac0ea4a7b7ac3a7a554b32fa7a2babf8d.zip | |
add capabilities parameter to initialize method call
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -114,6 +114,11 @@ lspc = { menu_cmd = 'vis-menu', } +-- our capabilities we tell the language server when calling "initialize" +local client_capabilites = {} +client_capabilites.workspace = {} +client_capabilites.workspace.configuration = false + -- check if fzf is available and use fzf instead of vis-menu per default if os.execute('type fzf >/dev/null 2>/dev/null') then lspc.menu_cmd = 'fzf' @@ -778,7 +783,7 @@ local function ls_start_server(syntax) processID = vis_pid, client = {name = lspc.name, version = lspc.version}, rootUri = nil, - capabilities = {}, + capabilities = client_capabilites, } ls_call_method(ls, 'initialize', params) |
