renamer.nvim icon indicating copy to clipboard operation
renamer.nvim copied to clipboard

Working LSP, but still get "No LSP client found for the current file"

Open joshuarubin opened this issue 2 years ago • 2 comments

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.

https://github.com/filipdutescu/renamer.nvim/blob/1614d466df53899f11dd5395eaac3c09a275c384/lua/renamer/utils.lua#L86

joshuarubin avatar Mar 02 '23 21:03 joshuarubin

Same error: image

LspInfo: image

imroc avatar Aug 13 '23 13:08 imroc

Still same error here.

kxzo avatar Aug 13 '23 18:08 kxzo