When I opened two split windows for the same buffer and called vim.lsp.buf.definition, if the symbol definition is in the same file, it would always jump to definition in the first window.
Is there a way to jump to definition in current window instead of the first window?
:lua vim.lsp.buf.definition(), I jump in whichever window I am currently in while the other remains as-is.