diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-09 16:30:35 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-09 16:30:35 +0100 |
commit | 02cd73cf34dd50f75852257a1ae08eaed7985398 (patch) | |
tree | ff6a0874f9c9c637dfd559b7e14b0583121df2e3 | |
parent | f88a9fd277076c713c7dc4a6c72af067d6eb86a6 (diff) | |
parent | e73548ec28678ab3457c61e6438ea51f32bc95da (diff) |
Merge branch 'main' of db:nvim
-rw-r--r-- | after/ftplugin/markdown.lua | 11 | ||||
-rw-r--r-- | lua/config/set.lua | 14 |
2 files changed, 17 insertions, 8 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]\\+[.)]\\)[^:]\\+::") diff --git a/lua/config/set.lua b/lua/config/set.lua index 8927a37..1616592 100644 --- a/lua/config/set.lua +++ b/lua/config/set.lua @@ -102,11 +102,15 @@ end opt.title = true -- Highlighting -vim.cmd("match Todo /\\(TODO\\|FIXME\\):/") - --- TODO: this is some text -vim.cmd("syntax match matchURL /" .. "\\(https\\?\\|ftp\\|magnet\\):\\/\\/[[:alnum:]%\\/_#.-~:]*" .. "/") -vim.cmd("hi matchURL guifg=" .. require("nord.colors").palette.aurora.yellow) +-- NOTE: +vim.fn.matchadd("matchNotes", "NOTE\\((.*)\\)\\?:") +vim.api.nvim_set_hl(0, "matchNotes", { fg = require("nord.colors").palette.frost.ice }) +-- TODO: FIXME: +vim.api.nvim_set_hl(0, "matchTodos", { fg = require("nord.colors").palette.aurora.yellow }) +vim.fn.matchadd("matchTodos", "\\(TODO\\|FIXME\\)\\((.*)\\)\\?:") +-- ERROR: BUG: +vim.api.nvim_set_hl(0, "matchErrors", { fg = require("nord.colors").palette.aurora.red }) +vim.fn.matchadd("matchErrors", "\\(BUG\\|ERROR\\)\\((.*)\\)\\?:") -- vim.opt.fillchars = { fold = " " } -- vim.opt.foldmethod = "indent" |