Open naquad opened 1 year ago
Update
It was happening only for PHPActor LS, after some digging it figured out that the generated message looked like this:
[phpactor] Indexing workspace 4500/6874 (65.46%, 243/5096 mb) (65%%)
Mind the single %
.
A somewhat simplistic fix:
local function lsp_status_check()
if #vim.lsp.buf_get_clients() == 0 then
return ''
end
local status = lsp_status.status()
status = status:gsub('%%%%', '%%') -- decode the encoded % sign
status = status:gsub('%%', '%%%%') -- and encode them all
return status
end
I'm using lualine with lsp-status and I get the following error when I'm trying phpactor:
Sometimes I see that error using other language servers. I've already seen a similar https://github.com/neoclide/coc.nvim/issues/3051 but there it was related to the VIM script encoding.