Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Nov 29, 2023
1 parent 07a9463 commit 923c67b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/epo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ local function complete_ondone(bufnr)
end

if cp_item.additionalTextEdits then
for _, edit in ipairs(cp_item.additionalTextEdits) do
local range = edit.range
if range.start.line == range['end'].line then
range['end'].line = range['end'].line + 1
end
end
lsp.util.apply_text_edits(cp_item.additionalTextEdits, bufnr, client.offset_encoding)
end

Expand Down

0 comments on commit 923c67b

Please sign in to comment.