Fix highlight for usernames (#83)
Changes regular expression for Gitlab usernames.
This commit is contained in:
@@ -2,7 +2,7 @@ if filereadable($VIMRUNTIME . '/syntax/markdown.vim')
|
|||||||
source $VIMRUNTIME/syntax/markdown.vim
|
source $VIMRUNTIME/syntax/markdown.vim
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syntax match Username "@\w\+"
|
syntax match Username "@\S*"
|
||||||
syntax match Date "\v\d+\s+\w+\s+ago"
|
syntax match Date "\v\d+\s+\w+\s+ago"
|
||||||
syntax match ChevronDown ""
|
syntax match ChevronDown ""
|
||||||
syntax match ChevronRight ""
|
syntax match ChevronRight ""
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ local Job = require("plenary.job")
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.get_colors_for_group = function(group)
|
M.get_colors_for_group = function(group)
|
||||||
local normal_fg = vim.fn.synIDattr(vim.fn.hlID(group), "fg")
|
local normal_fg = vim.fn.synIDattr(vim.fn.synIDtrans((vim.fn.hlID(group))), "fg")
|
||||||
local normal_bg = vim.fn.synIDattr(vim.fn.hlID(group), "bg")
|
local normal_bg = vim.fn.synIDattr(vim.fn.synIDtrans((vim.fn.hlID(group))), "bg")
|
||||||
return { fg = normal_fg, bg = normal_bg }
|
return { fg = normal_fg, bg = normal_bg }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user