You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as i understood from the plugin shortcut <leader>vrn, it picks the name to be renamed, and change it with the new name on the command.
However in my case it doesn't seem to pick anything, my config
inc_rename.bug.mp4
leaving me with this errror
Error executing Lua callback: /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:291: Cannot serialise function: type not supported
stack traceback:
^I[C]: in function 'encode'
^I/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:291: in function 'encode_and_send'
^I/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:338: in function 'request'
^I/usr/share/nvim/runtime/lua/vim/lsp/client.lua:679: in function 'request'
^I/usr/share/nvim/runtime/lua/vim/lsp.lua:882: in function 'buf_request'
^I.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:210: in function 'check_can_rename_at_position'
^I.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:426: in function <.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:414>
Active language servers: { "lua_ls" }
Buffer name: /home/wec/.dotphile/nvim/lua/neowec/remap.lua ```
The text was updated successfully, but these errors were encountered:
I'm not sure what's causing this issue, does it still occur for you after the latest commit? If yes, which Nvim version are you using (run nvim --version)?
vim.keymap.set("n", "<leader>vrn", function()
-- requiring it to make sure inc_rename is loadedlocalok, _=pcall(require, "inc_rename")
ifokthenreturn":IncRename " ..vim.fn.expand("<cword>")
endend, { expr=true, silent=false, desc="Rename" })
You can put it in your lsp keymaps and check if the current lsp has rename capabilities so the command would not work if the lsp does not have rename capabilities (this is optional).
As far as i understood from the plugin shortcut
<leader>vrn
, it picks the name to be renamed, and change it with the new name on the command.However in my case it doesn't seem to pick anything, my config
inc_rename.bug.mp4
leaving me with this errror
The text was updated successfully, but these errors were encountered: