LSP UI (original) (raw)

MELPA MELPA Stable CI

Table of Contents

Intro#

This package contains all the higher level UI modules of lsp-mode, like flycheck support and code lenses.

By default, lsp-mode automatically activates lsp-ui unless lsp-auto-configure is set to nil.

You only have to put (use-package lsp-ui) in your config and the package will work out of the box. (use-package)

Or use the builtin package manager.

M-x package-install [RET] lsp-ui [RET]

lsp-ui-sideline:#

Show informations of the symbols on the current line. It also show flycheck diagnostics and LSP code actionslsp-line

Customization:

lsp-ui-peek:#

Add peek featurelsp-xref

You may remap xref-find-{definitions,references} (bound to M-. M-? by default):

(define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions) (define-key lsp-ui-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references)

There is a window-local jump list dedicated to cross references:

(lsp-ui-peek-jump-backward) (lsp-ui-peek-jump-forward)

Other cross references:

(lsp-ui-peek-find-workspace-symbol "pattern 0") ;; If the server supports custom cross references (lsp-ui-peek-find-custom 'base "$cquery/base")

Customization:

lsp-ui-doc#

Show object documentation at point in a child frame.lsp-ui-doc

Show documentation in a WebKit widgetlsp-ui-doc-webkit

Focus into lsp-ui-doc-framelsp-ui-doc-focus-frame

Customization:

Show imenu entries.

lsp-ui-doc

Customization:

Contributing#

Any kind of help is appreciated. If you want to help us maintaining this package,leave a note.


Last update:April 23, 2025