Skip to content

Commit 9eb97c6

Browse files
committed
fix(rename): fix mappings - nui input props changed
1 parent e3eb937 commit 9eb97c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lua/cosmic-ui/rename/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ local function rename(popup_opts, opts)
4949
input:mount()
5050

5151
-- las value is length of highlight
52-
vim.api.nvim_buf_add_highlight(input.bufnr, -1, 'LspRenamePrompt', 0, 0, #opts.prompt)
53-
vim.cmd('hi link LspRenamePrompt Comment')
52+
-- vim.api.nvim_buf_add_highlight(input.bufnr, -1, 'LspRenamePrompt', 0, 0, #opts.prompt)
53+
-- vim.cmd('hi link LspRenamePrompt Comment')
5454

5555
utils.default_mappings(input)
5656

lua/cosmic-ui/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local map = function(input, lhs, rhs)
3939
end
4040

4141
M.default_mappings = function(input)
42-
local prompt = input.input_props.prompt._length
42+
local prompt = input._.prompt._length
4343

4444
map(input, '<ESC>', function()
4545
input.input_props.on_close()

0 commit comments

Comments
 (0)