lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

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

Open c02y opened this issue 3 years ago • 1 comments

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.

c02y avatar Jan 21 '22 23:01 c02y

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.

utkarsh-singh07 avatar Jun 27 '23 07:06 utkarsh-singh07