diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-14 07:02:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 07:02:06 -0700 |
commit | 5a813160ae07570f9002bc55777f671f734fc2a4 (patch) | |
tree | b6baa265634f92b138f2c275ddc1b579b1c59abd /runtime/lua/vim/lsp/util.lua | |
parent | 88336851ee1e9c3982195592ae2fc145ecfd3369 (diff) | |
parent | 917f30666657acc3ad3daf44425c4d28f7ffb299 (diff) | |
download | rneovim-5a813160ae07570f9002bc55777f671f734fc2a4.tar.gz rneovim-5a813160ae07570f9002bc55777f671f734fc2a4.tar.bz2 rneovim-5a813160ae07570f9002bc55777f671f734fc2a4.zip |
Merge #15664 backport PRs
backport: PRs #14962, #14982, #14984, #14989, #15011, #15043
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 195e3a0e65..06afc2c5e2 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -810,16 +810,16 @@ function M.convert_input_to_markdown_lines(input, contents) -- If it's plaintext, then wrap it in a <text></text> block -- Some servers send input.value as empty, so let's ignore this :( - input.value = input.value or '' + local value = input.value or '' if input.kind == "plaintext" then -- wrap this in a <text></text> block so that stylize_markdown -- can properly process it as plaintext - input.value = string.format("<text>\n%s\n</text>", input.value or "") + value = string.format("<text>\n%s\n</text>", value) end - -- assert(type(input.value) == 'string') - list_extend(contents, split_lines(input.value)) + -- assert(type(value) == 'string') + list_extend(contents, split_lines(value)) -- MarkupString variation 2 elseif input.language then -- Some servers send input.value as empty, so let's ignore this :( |