Skip to content

Commit 198cd00

Browse files
authored
fix: correctly parse arg to get mode in rename (#1510)
1 parent 2710a0a commit 198cd00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/lspsaga/rename/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ local function parse_argument(args)
8282

8383
for _, arg in ipairs(args or {}) do
8484
if arg:find('mode=') then
85-
mode = vim.split(arg, '=', { trimempty = true })
85+
mode = vim.split(arg, '=', { trimempty = true })[2]
8686
elseif arg:find('%+%+project') then
8787
project = true
8888
end

0 commit comments

Comments
 (0)