Merge pull request #30825 from lewis6991/refactor/lsputil

This commit is contained in:
Lewis Russell
2024-10-17 13:35:02 +01:00
committed by GitHub
9 changed files with 568 additions and 550 deletions

View File

@@ -338,6 +338,8 @@ function M.rename(new_name, opts)
-- Compute early to account for cursor movements after going async
local cword = vim.fn.expand('<cword>')
--- @param range lsp.Range
--- @param offset_encoding string
local function get_text_at_range(range, offset_encoding)
return api.nvim_buf_get_text(
bufnr,