reddit / emacs

Anyone have any example or tips of how to customize the types of warnings that eglot/flymake reports?

JustinSilverman · 2022-10-03 16:44
In short, some combo of eglot/flymake/\[the specific language server I am using\] is outputing a bunch of warnings that I don't always care about. I want to know how to silence some types of warnings. In general, is there a common interface for this kind of stuff or its all language server dependent? Specifically I am using eglot with the digestif language server for editing latex documents but my question is a bit more general. What prompted this questino is a "Wrong length of dash may have been used" warning that I want to just ignore in the future. Thank!
yapfff · 2022-10-04 08:09
You need to do this at the LSP server level, by configuring your LSP server. both eglot and flymake are just pipes for the information here. This configuration could be done through eglot and the LSP protocol in some cases, but personally I find it easier to just configure the LSP server directly.
JustinSilverman · 2022-10-04 09:38
Thank you!