Skip to content

Commit

Permalink
feat(nvim): Add SAFETY keyword to todo-comments.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Dec 13, 2024
1 parent 5820e64 commit c69c4a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nvim/lua/my/configure/comments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ return {
--
-- TODO with a very long
-- multiline comment
--
-- SAFETY: a safety comment for a Rust `unsafe { }` block
highlight = {
-- change pattern to not require a colon after the keyword
pattern = [[.*<(KEYWORDS)\s*]],
keyword = 'bg',
comments_only = true,
},
search = { pattern = [[.*<(KEYWORDS)\s*]] },
keywords = {
SAFETY = { icon = '󰲉 ', color = 'warning' },
},
},
},
{
Expand Down

0 comments on commit c69c4a1

Please sign in to comment.