We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e205f4f commit 42a8ecfCopy full SHA for 42a8ecf
lua/tinygit/shared/highlights.lua
@@ -7,7 +7,10 @@ function M.inlineCodeAndIssueNumbers()
7
end
8
9
function M.commitType()
10
- local commitTypePattern = [[\v^\s*\w+(\(.{-}\))?!?]]
+ -- not restricted to start of string, so prefixes like the numbering from the
11
+ -- snacks-ui-select do not prevent the highlight
12
+ local commitTypePattern = [[\v\w+(\(.{-}\))?!?]]
13
+
14
local type = commitTypePattern .. [[\ze: ]] -- `\ze`: end of match
15
local colonAfterType = commitTypePattern .. [[\zs: ]] -- `\zs`: start of match
16
vim.fn.matchadd("Title", type)
0 commit comments