diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-10-16 13:33:07 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-10-17 12:52:45 +0100 |
commit | 3f87e222f79bcbd4f6c863128064954d62da5b75 (patch) | |
tree | 53cdd66e90c13ed8a1ad7f16155144de308b4e5e /runtime/lua/vim/lsp/util.lua | |
parent | 8ad000ef7cf0409e2575d39c8061e17297b0cfec (diff) | |
download | rneovim-3f87e222f79bcbd4f6c863128064954d62da5b75.tar.gz rneovim-3f87e222f79bcbd4f6c863128064954d62da5b75.tar.bz2 rneovim-3f87e222f79bcbd4f6c863128064954d62da5b75.zip |
feat(lsp.util): remove some aliases
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index be43087a2c..790a7001ad 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -6,7 +6,6 @@ local highlight = vim.highlight local uv = vim.uv local npcall = vim.F.npcall -local split = vim.split local M = {} @@ -432,7 +431,7 @@ function M.apply_text_edits(text_edits, bufnr, offset_encoding) local start_col = get_line_byte_from_position(bufnr, text_edit.range.start, offset_encoding) local end_row = text_edit.range['end'].line local end_col = get_line_byte_from_position(bufnr, text_edit.range['end'], offset_encoding) - local text = split(text_edit.newText, '\n', { plain = true }) + local text = vim.split(text_edit.newText, '\n', { plain = true }) local max = api.nvim_buf_line_count(bufnr) -- If the whole edit is after the lines in the buffer we can simply add the new text to the end @@ -818,7 +817,7 @@ function M.convert_signature_help_to_markdown_lines(signature_help, ft, triggers -- wrap inside a code block for proper rendering label = ('```%s\n%s\n```'):format(ft, label) end - list_extend(contents, split(label, '\n', { plain = true, trimempty = true })) + list_extend(contents, vim.split(label, '\n', { plain = true, trimempty = true })) local doc = signature.documentation if doc then -- if LSP returns plain string, we treat it as plaintext. This avoids |