ojroques/nvim-lspfuzzy

bad argument #1 to 'unpack' (table expected, got string)

teto opened this issue · 3 comments

teto commented

I've updated everything and I am on neovim master but I get

|| E5108: Error executing lua ...to/.local/share/nvim/site/nvim-lspfuzzy/lua/lspfuzzy.lua:95: bad argument #1 to 'unpack' (table expected, got string)
|| E5108: Error executing lua ...to/.local/share/nvim/site/nvim-lspfuzzy/lua/lspfuzzy.lua:95: bad argument #1 to 'unpack' (table expected, got string)

on
:LspDiagnosticAll

Hello!

I'll look into it. Does that happen only for :LspDiagnosticAll? Are you using the fzf_preview_window option in your config?

teto commented

Nope it fails for LspDiagnostic too, if I comment out let g:fzf_preview_window = 'right:30%', then lspfuzzy works

Should work now. The plugin was expecting a table for that option. I added a check to convert a string value to a table.