Open joshuarubin opened 1 year ago
This is caused by using the # operator which expects a 1 based sequence which is not always the case even if there are values in vim.lsp.buf_get_clients(0). You'll have to count another way.
#
1
vim.lsp.buf_get_clients(0)
https://github.com/filipdutescu/renamer.nvim/blob/1614d466df53899f11dd5395eaac3c09a275c384/lua/renamer/utils.lua#L86
Same error:
LspInfo:
Still same error here.
This is caused by using the
#
operator which expects a1
based sequence which is not always the case even if there are values invim.lsp.buf_get_clients(0)
. You'll have to count another way.https://github.com/filipdutescu/renamer.nvim/blob/1614d466df53899f11dd5395eaac3c09a275c384/lua/renamer/utils.lua#L86