2

lsp header-line

I'm not sure what it is for but it's a bit annoying and not helpful.

How to remove that wave underline?

BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91

3 Answers3

2

Using

(setq lsp-headerline-breadcrumb-enable-diagnostics nil)

moves them away.

Ju-an Zhang
  • 21
  • 1
  • 3
1

You can override the related face somewhere in your emacs init process by adding:

(set-face-underline 'lsp-headerline-breadcrumb-path-warning-face nil)

In case you want to remove other underlines, add these too:

(set-face-underline 'lsp-headerline-breadcrumb-symbols-hint-face nil)
(set-face-underline 'lsp-headerline-breadcrumb-symbols-info-face nil)
(set-face-underline 'lsp-headerline-breadcrumb-path-hint-face nil)
(set-face-underline 'lsp-headerline-breadcrumb-path-info-face nil)

Headerline settings

BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
1

In addition to what @Nikita said, you can simply customize any such faces, using M-x customize-face (and save the customization).

The wavy underline is just one possible face attribute - it's trivial to change/unset it.

Faces are user preferences, just like options (user variables). And Customize is a clean, safe way to set and save your preferences.

By default preferences are saved to your Emacs init file, but it's generally better to have Customize save settings instead to the file that's named by the value of variable custom-file. That way, Customize never touches your init file, which you reserve for your own Elisp code.

Drew
  • 29,895
  • 7
  • 74
  • 104