mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 05:49:45 +01:00
fixed deprecated function
This commit is contained in:
@@ -26,8 +26,8 @@ M.update = function()
|
|||||||
position = { line = l - 1, character = c },
|
position = { line = l - 1, character = c },
|
||||||
}, function(err, result, ctx, config)
|
}, function(err, result, ctx, config)
|
||||||
if win and vim.api.nvim_win_is_valid(win) and result and result.contents then
|
if win and vim.api.nvim_win_is_valid(win) and result and result.contents then
|
||||||
print(result.contents)
|
print(table.concat(result.contents,"\n"))
|
||||||
local md_lines = vim.lsp.util.convert_input_to_markdown_lines(result.contents)
|
local md_lines = vim.lsp.util.convert_input_to_markdown_lines(table.concat(result.contents,"\n"))
|
||||||
-- print(md_lines)
|
-- print(md_lines)
|
||||||
md_lines = vim.gsplit(md_lines, "\n", { trimempty = true })
|
md_lines = vim.gsplit(md_lines, "\n", { trimempty = true })
|
||||||
if vim.tbl_isempty(md_lines) then
|
if vim.tbl_isempty(md_lines) then
|
||||||
|
|||||||
Reference in New Issue
Block a user