Closed Mte90 closed 2 years ago
Can you show how you're calling notify? It should automatically split on new lines, however if the input is a list, it will not as it assumes that the elements are each a line.
It is generated my guess from LSP using php actor but I am not sure what is the source...
I can see from the traceback that the call to vim.notify
is within your own config in .config/nvim/lua/plugin/lsp.lua
. Can you show what that LSP handler looks like?
Aha yes that's it. It places it in a list for some reason. Just change { result.message }
to result.message
and it'll work as expected. I've updated the snippet in the wiki
Cool :-)
As you can see... It is possible to trim newlines to avoid this error?