Skip to content

kljohann/lsp-ui

 
 

Repository files navigation

MELPA

lsp-ui

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

More info to follow.

To enable the package and its features:

(require 'lsp-ui)
(add-hook 'lsp-mode-hook 'lsp-ui-mode)

To enable flycheck-mode for a particular LSP client, add the following

(add-hook 'XXXXX-mode-hook 'flycheck-mode)

Otherwise the flycheck diagnostics will not be rendered.

To customize:
M-x customize-group [RET] lsp-ui [RET]

lsp-ui-sideline:

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

lsp-ui-peek:

Add peek feature
lsp-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")

lsp-ui-imenu:

lsp-ui-doc:

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 99.9%
  • Makefile 0.1%