diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-26 14:21:40 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2021-09-26 15:15:03 -0700 |
commit | 14cdaca6a8180c6e3079cd2e73fa75a5eb5253da (patch) | |
tree | 9c8f57587621004c78b4dea23ff1c6f679500c2a /runtime/lua/vim/lsp.lua | |
parent | 7b0ae589f0a703359db4e52733e3998987de4123 (diff) | |
download | rneovim-14cdaca6a8180c6e3079cd2e73fa75a5eb5253da.tar.gz rneovim-14cdaca6a8180c6e3079cd2e73fa75a5eb5253da.tar.bz2 rneovim-14cdaca6a8180c6e3079cd2e73fa75a5eb5253da.zip |
fix(lsp): fix handler signature, tests
- not necessary on master: got lost in the vim.lsp.diagnostic => vim.diagnostic migration
- fix tests which accidentally depended on previous session
- ref #15504
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 3783902941..06d703e5ce 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -455,12 +455,15 @@ local function text_document_did_open_handler(bufnr, client) vim.schedule(function() vim.lsp.handlers["textDocument/publishDiagnostics"]( nil, - "textDocument/publishDiagnostics", { diagnostics = vim.lsp.diagnostic.get(bufnr, client.id), uri = vim.uri_from_bufnr(bufnr), }, - client.id + { + method="textDocument/publishDiagnostics", + client_id=client.id, + bufnr=bufnr, + } ) end) end |