9

GitHub - gagbo/consult-lsp: LSP-mode and consult.el helping each other

 3 years ago
source link: https://github.com/gagbo/consult-lsp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Consult LSP-mode integration

Introduction

Helm and Ivy users have extra commands that leverage lsp-mode extra information, let’s try to mimic a few features of helm-lsp and lsp-ivy in consult workflow (tested only with selectrum for the time being)

Screenshots

https://github.com/gagbo/consult-lsp/blob/screenshots/media/consult-lsp-diagnostics.png?raw=true

https://github.com/gagbo/consult-lsp/blob/screenshots/media/consult-lsp-symbols.png?raw=true

Commands

consult-lsp-diagnosticsSelect diagnostics from current workspace. Pass prefix argument to search all workspaces consult-lsp-symbolsSelect symbols from current workspace. Pass prefix argument to search all workspaces.

There is currently no plan to add an interface to list and/or act on code-actions, but contributions are welcome!

Configuration

As you can do with helm-lsp,

Use the following line to replace xref-find-apropos in lsp-mode controlled buffers:

(define-key lsp-mode-map [remap xref-find-apropos] #'consult-lsp-symbols)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK