diff options
| author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-09-20 09:17:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-20 09:17:14 -0500 |
| commit | 4266f9bb36b4fb09edd19b67d95043cf7ff88ddf (patch) | |
| tree | bc9e996e165174b25df222207bd7da4d082503fa /lua/lspconfig/ui | |
| parent | fix(LspInfo): error if root_dir is nil #2813 (diff) | |
| download | nvim-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.lua | 3 |
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) |
