怎么实现lsp-find-definition在新窗口打开?

请问类似evil-jump-to-tag或者lsp-find-definition这种跳转方法,怎么在新的window打开呢?

代码参考: https://github.com/manateelazycat/find-define/blob/34761f98e35f18c0eacf22102e74b8eae4639d7c/find-define.el#L112

关键是,先用 (switch-to-buffer-other-window (buffer-name)) 开一个窗口,然后接着执行你要做的命令。

(defun cabuda/jump-to-definition-other-window ()
  (interactive)
  (let ((pop-up-windows t))
    (pop-to-buffer (current-buffer) t))
  (cabuda/jump-to-definition))

我也找到一种方案,我测了一下两种方案都可以。 多谢啦大佬~