'Emacs: How to remove wave underline in lsp header-line?

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?



Solution 1:[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.

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Drew
Solution 2