aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-05-16 15:22:46 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-05-16 18:30:59 +0200
commita664246171569209698c0b17b1d7af831f6603d2 (patch)
tree0c1f5389ff1f134eebf8177613cec219f56c560b /runtime/lua/vim/lsp/handlers.lua
parent4b029163345333a2c6975cd0dace6613b036ae47 (diff)
downloadrneovim-a664246171569209698c0b17b1d7af831f6603d2.tar.gz
rneovim-a664246171569209698c0b17b1d7af831f6603d2.tar.bz2
rneovim-a664246171569209698c0b17b1d7af831f6603d2.zip
feat: remove deprecated features
Remove following functions: - vim.lsp.util.extract_completion_items - vim.lsp.util.get_progress_messages - vim.lsp.util.parse_snippet() - vim.lsp.util.text_document_completion_list_to_complete_items - LanguageTree:for_each_child - health#report_error - health#report_info - health#report_ok - health#report_start - health#report_warn - vim.health.report_error - vim.health.report_info - vim.health.report_ok - vim.health.report_start - vim.health.report_warn
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index 7018b9f61b..f9d394642c 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -3,6 +3,7 @@ local protocol = require('vim.lsp.protocol')
local ms = protocol.Methods
local util = require('vim.lsp.util')
local api = vim.api
+local completion = require('vim.lsp._completion')
--- @type table<string,lsp.Handler>
local M = {}
@@ -353,7 +354,7 @@ M[ms.textDocument_completion] = function(_, result, _, _)
local textMatch = vim.fn.match(line_to_cursor, '\\k*$')
local prefix = line_to_cursor:sub(textMatch + 1)
- local matches = util.text_document_completion_list_to_complete_items(result, prefix)
+ local matches = completion._lsp_to_complete_items(result, prefix)
vim.fn.complete(textMatch + 1, matches)
end