Open stephane-archer opened 1 year ago
This seems to be a bug in https://github.com/LuaLS/lua-language-server. It seems to count the number of arguments here https://github.com/theHamsta/nvim-dap-virtual-text/blob/99f0a58f96a44198267d75e613b732c9b6f93845/lua/nvim-dap-virtual-text.lua#L78-L91 incorrectly because of this line. When I remove https://github.com/theHamsta/nvim-dap-virtual-text/blob/99f0a58f96a44198267d75e613b732c9b6f93845/lua/nvim-dap-virtual-text.lua#L84 then it recognizes correctly that the function has only 5 parameters and 1 return value.
Not sure why I can't repro it anymore. Maybe it has been fixed upstream?
my lips LPS complain about the following line not receiving enough arguments:
require('nvim-dap-virtual-text').setup()
I imagine the solution would berequire('nvim-dap-virtual-text').setup({})
but I'm not sure, I'm really a noob when it comes to configuring Neovim. Please update the README