vim.diagnostic.goto_{next,prev} are deprecated #2017
Unanswered
verygitmuchhub
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
probably the wrong place to ask, but I hope someone is just smarter than I am.
:help deprecated
reports bothvim.diagnostic.goto_next
andvim.diagnostic.goto_prev
as deprecated. Users should go forvim.diagnostic.jump
instead. Right.In init.lua I have something like:
I took those from the documentation of https://github.com/neovim/nvim-lspconfig repository. I cannot find any such thing there anymore.
The question is... How do I update these keybindings to use
vim.diagnostic.jump
function correctly? I tried like everything with two different results:I looked in LazyVim as well where
local diagnostic_goto
usesgoto_next
andgoto_prev
respectively. (https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua#L123).Any hint how to configure that correcty?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions