chore: adapt lsp request handler for nvim >= 0.5.1
https://github.com/neovim/neovim/pull/15504
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
local vim = vim
|
||||
local main = require('symbols-outline')
|
||||
local config = require('symbols-outline.config')
|
||||
local buf_request = require('symbols-outline.utils.lsp_utils').request
|
||||
|
||||
local M = {}
|
||||
|
||||
@@ -103,8 +104,8 @@ local function update_hover()
|
||||
if not node then return end
|
||||
local params = get_hover_params(node, main.state.code_win)
|
||||
|
||||
vim.lsp.buf_request(params.bufnr, "textDocument/hover", params,
|
||||
function(err, _, result)
|
||||
buf_request(params.bufnr, "textDocument/hover", params,
|
||||
function(err, result)
|
||||
if err then print(vim.inspect(err)) end
|
||||
local markdown_lines = {}
|
||||
if result ~= nil then
|
||||
|
||||
Reference in New Issue
Block a user