Closed lassepe closed 7 months ago
Seems like it's not just unknown (because the workaround was provided), but it looks like the workaround has a bug, see https://github.com/zbirenbaum/copilot.lua/commit/49860bd8e6f4f5ab18763038c35edd0eae521480#commitcomment-133723717
fixed in 2b974b49b975384117e09d0e953e992a30e2bd64
When running copilot.lua on nvim 0.9.4, I get the following error upon expanding a suggestion:
The offending line seems to be this:
https://github.com/zbirenbaum/copilot.lua/blob/15004980c2fa03bbcdb2b036bf5aac25e4d1a193/lua/copilot/util.lua#L304
Specifically,
vim.fn.strutf16len
is truethy but not callable. Commenting out this function override symptomatically fixes the issue.