Skip to content

Commit 9ce4f80

Browse files
author
Jan Steinke
committed
fix nil-access
1 parent f26627a commit 9ce4f80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/lsp-preview/diff.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ end
3030

3131
---@return string
3232
function Rename:title()
33-
return "Rename: " .. self.change.oldUri
33+
return "Rename: " .. self.change.oldUri .. " -> " .. self.change.newUri
3434
end
3535

3636
---@return { text: string, syntax: string } previewObject # the preview object used for backends

lua/lsp-preview/telescope.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function M.apply_action(opts, documentChanges, changes, apply_selection)
179179
preview = preview or { syntax = "", text = "preview not available" }
180180

181181
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, vim.split(preview.text, "\n", { plain = true }))
182-
putils.highlighter(bufnr, preview.syntax, opts)
182+
putils.highlighter(bufnr, preview.syntax, {})
183183
end
184184
end,
185185
scroll_fn = function(self, direction)

0 commit comments

Comments
 (0)