summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-14 12:40:38 -0600
committerCraig Jennings <c@cjennings.net>2025-11-14 12:40:38 -0600
commitae4ef72755d559c19665d1bb8325c42558bd4172 (patch)
treed967229e5df0cce02df8ae3781b9a0214a65f64a /config.def.h
parent64d2eb519923ac5a4d0dbd8ace95cb5ac2639dfe (diff)
apply undercurl patch for enhanced underline stylesHEADmain
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
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h24
1 files changed, 24 insertions, 0 deletions
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