From ae4ef72755d559c19665d1bb8325c42558bd4172 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 14 Nov 2025 12:40:38 -0600 Subject: apply undercurl patch for enhanced underline styles Applied st-undercurl-0.9-20240103.diff cleanly with offset adjustments. Benefits: - Adds support for curly/wavy underlines (undercurl) - Custom underline colors via SGR escape codes - Compatible with Vim/NeoVim LSP diagnostics and spell-check - Supports standard terminal features used by most modern terminals Use cases: - Editor spell-check with wavy underlines - LSP warnings/errors with colored underlines - Enhanced visual feedback in terminal applications --- config.def.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 6a86df4..23496b2 100644 --- a/config.def.h +++ b/config.def.h @@ -498,3 +498,27 @@ static char ascii_printable[] = " !\"#$%&'()*+,-./0123456789:;<=>?" "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" "`abcdefghijklmnopqrstuvwxyz{|}~"; + +/** + * Undercurl style. Set UNDERCURL_STYLE to one of the available styles. + * + * Curly: Dunno how to draw it *shrug* + * _ _ _ _ + * ( ) ( ) ( ) ( ) + * (_) (_) (_) (_) + * + * Spiky: + * /\ /\ /\ /\ + * \/ \/ \/ + * + * Capped: + * _ _ _ + * / \ / \ / \ + * \_/ \_/ + */ +// Available styles +#define UNDERCURL_CURLY 0 +#define UNDERCURL_SPIKY 1 +#define UNDERCURL_CAPPED 2 +// Active style +#define UNDERCURL_STYLE UNDERCURL_SPIKY -- cgit v1.2.3