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)
- 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!
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)