From 198cd002447bc5570b7814402de8d8164344084e Mon Sep 17 00:00:00 2001 From: heddxh Date: Sat, 21 Dec 2024 09:43:03 +0800 Subject: [PATCH] fix: correctly parse arg to get mode in rename (#1510) --- lua/lspsaga/rename/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspsaga/rename/init.lua b/lua/lspsaga/rename/init.lua index 765e07d9e..6a9d58d91 100644 --- a/lua/lspsaga/rename/init.lua +++ b/lua/lspsaga/rename/init.lua @@ -82,7 +82,7 @@ local function parse_argument(args) for _, arg in ipairs(args or {}) do if arg:find('mode=') then - mode = vim.split(arg, '=', { trimempty = true }) + mode = vim.split(arg, '=', { trimempty = true })[2] elseif arg:find('%+%+project') then project = true end