Fork me on GitHub
#emacs
<
2022-01-31
>
Zaymon05:01:09

Does anyone know how I can see these warnings—`13/8`—as a list for the whole project? The list all problems button just shows problems for the current buffer

mpenet06:01:40

it's called diagnostics, so something like lsp-diagnostics. I personally use consult-lsp to list/browse these, via consult-lsp-diagnostics iirc

Zaymon06:01:53

Thanks! I’ll look into this 🙂

ericdallo12:01:19

I like to use lsp-treemacs-errors-list

ericdallo12:01:15

If using vertico on doom-emacs, SPC c x will already list all of them quite nicely

mpenet13:01:06

Consult lsp allows some nice filtering/previews. You can filter per level with a single char

mpenet13:01:44

Like "e foo" to list all ERRORS containing foo

mpenet13:01:03

(I do that in tandem with vertico too), consult adds these little things

mpenet13:01:22

What does c x trigger in doom ?

ericdallo13:01:39

I found vertico faster and it does the same

ericdallo13:01:09

SPC c x list project errors if using vertico

👀 1
ericdallo13:01:21

if using ivy/other search engine it should list file errors only

mpenet13:01:35

I am using vertico

mpenet13:01:49

Vertico just shows candidates

mpenet13:01:08

Consult feeds the content to it basically

ericdallo13:01:22

oh, treemacs used to have a shortuct to filter only specific ones

mpenet13:01:31

Both are from the same author

mpenet13:01:29

The filtering pattern used in consult lsp is something you find in most consult modes

mpenet13:01:16

You can also export the list of candidates shown in a separate buffer (even after filtering)

mpenet13:01:32

And have links to locations just work

mpenet13:01:57

(that's via embark)

mpenet13:01:37

Vertico + consult + embark is really powerful

Zaymon06:02:11

Thanks! I’m rolling my own configuration so no doom emacs but I am going to try both vertico and consult and see which one I end up liking better over the next few days

mpenet06:02:23

They are not doing the same at all, they are complimentary

mpenet06:02:45

I advise to use both in tandem

Zaymon06:02:03

Oh, is vertico like ivy?

mpenet06:02:05

The author of vertico and consult is the same person btw

👀 1
Zaymon06:02:10

Because I already use ivy

mpenet06:02:24

Yes partly

mpenet06:02:02

Vertico + consult + orderless + embark = ivy/counsel/swiper. Small composable pieces

Zaymon06:02:37

Cool, thanks for the clarification 🙂 I might try consult+ivy first and see how that goes

mpenet06:02:40

Vertico & co are much cleaner imho and leverage emacs builtins

mpenet06:02:58

I don't know if ivy can use consult

Zaymon06:02:54

Ah I think you’re right. You can see how new I am to the ecosystem 😂

mpenet06:02:28

If you need inspiration https://github.com/mpenet/emax it doesn't use doom

🙌 1
Zaymon06:02:57

Appreciate the use of use-package

Zaymon23:02:19

@UKFSJSM38 lsp-treemacs-errors-list works great thanks

👍 1