aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/ui
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-09-20 09:17:14 -0500
committerGitHub <noreply@github.com>2023-09-20 09:17:14 -0500
commit4266f9bb36b4fb09edd19b67d95043cf7ff88ddf (patch)
treebc9e996e165174b25df222207bd7da4d082503fa /lua/lspconfig/ui
parentfix(LspInfo): error if root_dir is nil #2813 (diff)
downloadnvim-lspconfig-4266f9bb36b4fb09edd19b67d95043cf7ff88ddf.tar
nvim-lspconfig-4266f9bb36b4fb09edd19b67d95043cf7ff88ddf.tar.gz
nvim-lspconfig-4266f9bb36b4fb09edd19b67d95043cf7ff88ddf.tar.bz2
nvim-lspconfig-4266f9bb36b4fb09edd19b67d95043cf7ff88ddf.tar.lz
nvim-lspconfig-4266f9bb36b4fb09edd19b67d95043cf7ff88ddf.tar.xz
nvim-lspconfig-4266f9bb36b4fb09edd19b67d95043cf7ff88ddf.tar.zst
nvim-lspconfig-4266f9bb36b4fb09edd19b67d95043cf7ff88ddf.zip
fix: remove usages of private (now deprecated) functions (#2822)
Functions prefixed with _ should not be used, as they have no stability guarantees from Nvim and can be removed at anytime with no warning or replacement. _trim was such a function that was recently removed.
Diffstat (limited to 'lua/lspconfig/ui')
-rw-r--r--lua/lspconfig/ui/lspinfo.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/lua/lspconfig/ui/lspinfo.lua b/lua/lspconfig/ui/lspinfo.lua
index 66af6184..d57c1cb8 100644
--- a/lua/lspconfig/ui/lspinfo.lua
+++ b/lua/lspconfig/ui/lspinfo.lua
@@ -273,8 +273,6 @@ return function()
local fmt_buf_lines = indent_lines(buf_lines, ' ')
- fmt_buf_lines = vim.lsp.util._trim(fmt_buf_lines, {})
-
api.nvim_buf_set_lines(bufnr, 0, -1, true, fmt_buf_lines)
api.nvim_buf_set_option(bufnr, 'modifiable', false)
api.nvim_buf_set_option(bufnr, 'filetype', 'lspinfo')
@@ -348,7 +346,6 @@ return function()
local info = windows.percentage_range_window(0.8, 0.7)
lines = indent_lines(lines, ' ')
- lines = vim.lsp.util._trim(lines, {})
api.nvim_buf_set_lines(info.bufnr, 0, -1, false, lines)
api.nvim_buf_add_highlight(info.bufnr, 0, 'LspInfoTip', 0, 0, -1)