diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-05-02 23:06:12 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-05-02 23:06:12 +0200 |
| commit | 276dfc3763d2483065c976b699a0eac939c3038b (patch) | |
| tree | 8506526ca817e02245f90cb114a839686cfc962b /init.lua | |
| parent | 51541ef3c0f9ff65764b69806bfcebdb0c24addd (diff) | |
| download | vis-lspc-276dfc3763d2483065c976b699a0eac939c3038b.tar.gz vis-lspc-276dfc3763d2483065c976b699a0eac939c3038b.zip | |
emit the LS_INITIALIZED after finishing initialization
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -965,8 +965,6 @@ local function lspc_handle_initialize_response(ls, result) setmetatable(params, {__jsontype = 'object'}) ls_send_notification(ls, 'initialized', params) - vis.events.emit(lspc.events.LS_INITIALIZED, ls) - -- According to nvim-lspconfig sendig the lsp server settings shortly after -- initialization is a undocumented convention. -- See https://github.com/neovim/nvim-lspconfig/blob/ed88435764d8b00442e66d39ec3d9c360e560783/CONTRIBUTING.md @@ -975,6 +973,8 @@ local function lspc_handle_initialize_response(ls, result) settings = ls.settings, }) end + + vis.events.emit(lspc.events.LS_INITIALIZED, ls) end -- method response dispatcher |
