From e2008bec3e205e4aa6303887299d1ef7dd890dc9 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 9 Oct 2024 11:32:46 -0500 Subject: [PATCH] feat(nvim): improve hls for markup list numbers --- .../.config/nvim/after/queries/markdown/highlights.scm | 7 ++++++- .../dots/.config/nvim/lua/plugins/configs/kanagawa.lua | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/users/price/dots/.config/nvim/after/queries/markdown/highlights.scm b/users/price/dots/.config/nvim/after/queries/markdown/highlights.scm index 695acc60..87977fd9 100644 --- a/users/price/dots/.config/nvim/after/queries/markdown/highlights.scm +++ b/users/price/dots/.config/nvim/after/queries/markdown/highlights.scm @@ -2,12 +2,17 @@ ( ([ (list_marker_star) - (list_marker_plus) (list_marker_minus) ]) @markup.list (#offset! @markup.list 0 0 0 -1) (#set! conceal "•") ) +( + ([ + (list_marker_plus) + (list_marker_dot) + ]) @markup.list.number +) ; checkboxes ((task_list_marker_unchecked) @markup.list.unchecked (#set! conceal "")) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/users/price/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index ceea4a1f..901abb7d 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -266,6 +266,7 @@ return { }, { "Headline", { bg = colors.sumiInk0 } }, { "@markup.list", { fg = colors.crystalBlue } }, + { "@markup.list.number", { fg = colors.surimiOrange } }, { "@markup.list.checked", { fg = colors.springGreen } }, { "@markup.list.indeterminate", { fg = colors.carpYellow } }, { "@markup.verbatim", { fg = colors.springGreen, bg = colors.sumiInk0 } },