summaryrefslogtreecommitdiff
path: root/after/ftplugin/markdown.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-01-08 00:42:33 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-01-08 00:42:33 +0100
commit756ae4df44f14a46cca539e11c616d7a7db90e94 (patch)
tree60c497c5b0346dc1698fac54d0afc8b8a167750e /after/ftplugin/markdown.lua
parent7c4d8d704a991c6f5cdbef0f4c7f1df871238a71 (diff)
checkpoint
Diffstat (limited to 'after/ftplugin/markdown.lua')
-rw-r--r--after/ftplugin/markdown.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/after/ftplugin/markdown.lua b/after/ftplugin/markdown.lua
index cf4e3f9..6e5e39f 100644
--- a/after/ftplugin/markdown.lua
+++ b/after/ftplugin/markdown.lua
@@ -1,3 +1,8 @@
--- -- Custom highlight for markdown definitions
-vim.cmd("hi mdDefs guifg=" .. require("nord.colors").palette.frost.ice)
-vim.cmd("match mdDefs /^[[:space:]]*\\([-*]\\|[0-9]\\+[.)]\\)[^:]\\+::/")
+-- lower level in purple and red
+vim.api.nvim_set_hl(0, "MDdepthTwo", { fg = require("nord.colors").palette.aurora.purple })
+vim.fn.matchadd("MDdepthTwo", "^##")
+vim.api.nvim_set_hl(0, "MDdepthThree", { fg = require("nord.colors").palette.aurora.red })
+vim.fn.matchadd("MDdepthThree", "^###\\+")
+-- definitions
+vim.api.nvim_set_hl(0, "MDDefs", { fg = require("nord.colors").palette.frost.ice })
+vim.fn.matchadd("MDDefs", "^[[:space:]]*\\([-*]\\|[0-9]\\+[.)]\\)[^:]\\+::")