Closed aitvann closed 11 months ago
Hi,
thanks for reporting. The problem is that this:
require("nvim-next.integrations").diagnostic().goto_next()
returns a function, so you need to call it one more time:
require("nvim-next.integrations").diagnostic().goto_next()()
I know, that is kind of not very intuitive but it was necessary so that we can pass some additional arguments like the severity
.
Here are my bindings: https://github.com/ghostbuster91/dot-files/blob/d36a4f5045f5724b66a860fefd232516c50bf1fa/programs/neovim/init.lua#L142-L145
Let me know if this works for you and if you think that the documentation should be improved somehow.
now I see. thank you for the answer and for an awesome plugin !
I tried all of this
and my cursor isn't going anywhere. even tho just
:lua vim.diagnostic.goto_next()
works as expected. Treesitter text-objects and Gitsigns integrations work no problem