Hello, I am having issues making it work on lua files, I've tested it on C,C++ and java and it worked well, but when trying to use it on lua files it doesn't work.
I have this sudggeste mapping:
vim.keymap.set("n", "<leader>rn", function()
return ":IncRename " .. vim.fn.expand("<cword>")
end, { expr = true, desc = "[R]e[n]ame" })
When trying to use it on lua files the dressing window appears for an instant and I get the following error: [inc_rename] Nothing to rename
Also if I try to use the command manually the command tries to trigger as soon asi I write :Inc with the E471: Argument required error
I tried with Lspsaga's rename and it works fine.
Lsp I use on Lua is stylua