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

Can't move cursor in `lsp-ui-imenu` through wrapped lines #737

Open bertulli opened 1 year ago

bertulli commented 1 year ago

Hi all! First of all, thank you for your amazing work.

I noticed that when invoking lsp-ui-imenu, point can be moved using the usual next-line/previous-line. However, this won't work if I need to jump over a wrapped line. For instance, in this project image I can move freely between the first 4 lines (from Context class to HandleComment bool), but C-n won't point me to ~CommentHandler (jumping after where you see the cursor). Neither the arrow keys work, and I can reproduce this with lsp-start-plain.

Is this normal? If so, how can I change this behavior? Thanks!

(My Emacs is GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-07-31, lsp-mode is LSP :: lsp-mode 20221013.1343, Emacs 29.0.50, gnu/linux)

landtuna commented 1 year ago

Ah! This is my problem. I thought it wasn't possible to move the cursor at all, but in fact it just seems like that because all my lines are wrapped.