Skip to content

syohex/consult-lsp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Consult LSP-mode integration

MELPA MELPA Stable

This is a Work In Progress

Introduction

The main command that makes LSP-mode better than eglot for me is the ability to see all the errors in one, or all workspaces. Since I use consult, let’s try to mimic a few features of helm-lsp in consult/selectrum workflow

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-diagnostics
Select diagnostics from current workspace. Pass prefix argument to search all workspaces
consult-lsp-symbols
Select 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 lines to replace xref-find-apropos in lsp-mode controlled buffer.s

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

About

LSP-mode and consult.el helping each other

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%