emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

definition of lsp-ui-peek-find-definitions always starts from the bottom-half part of the frame #682

Open c02y opened 2 years ago

c02y commented 2 years ago

I already (setq lsp-ui-peek-peek-height 50) which is bigger enough, but the definition in the frame always starts from the bottom-half of the frame, I cannot see the rest of the content. Peek 2022-01-22 07-45

So my issues are:

  1. When I already put my line to the top of the screen, after executing lsp-ui-peek-find-definitions, the point of the line will be moved into the middle(not 50%-50% kind of middle) of the screen, I don't know if this affects 2.
  2. Is it able to put the definition to the top or top-half of the peek frame?
  3. How can I scroll using mouse inside the frame like VSCode, currently once I move my mouse, the peek frame is disappeared. (related: https://github.com/emacs-lsp/lsp-ui/issues/232)

If 3. could be fixed, the other two issues would be problems.

utkarsh-singh07 commented 1 year ago

Hi @c02y, have you found any workaround regarding this issue, as recently I have checked VS Code they also have an option to edit that definition at that point also, In emacs ,lsp-ui-find-peek-def, I can use tab, arrow and enter to roam around in the file navigation and open the definition in another buffer, but ability to scroll in that space would be useful.