Fix highlight for usernames (#83)

Changes regular expression for Gitlab usernames.
This commit is contained in:
mrparalon
2023-11-08 22:43:23 +04:00
committed by GitHub
parent 9742b5b229
commit a032c6434e
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ if filereadable($VIMRUNTIME . '/syntax/markdown.vim')
source $VIMRUNTIME/syntax/markdown.vim
endif
syntax match Username "@\w\+"
syntax match Username "@\S*"
syntax match Date "\v\d+\s+\w+\s+ago"
syntax match ChevronDown ""
syntax match ChevronRight ""

View File

@@ -2,8 +2,8 @@ local Job = require("plenary.job")
local M = {}
M.get_colors_for_group = function(group)
local normal_fg = vim.fn.synIDattr(vim.fn.hlID(group), "fg")
local normal_bg = vim.fn.synIDattr(vim.fn.hlID(group), "bg")
local normal_fg = vim.fn.synIDattr(vim.fn.synIDtrans((vim.fn.hlID(group))), "fg")
local normal_bg = vim.fn.synIDattr(vim.fn.synIDtrans((vim.fn.hlID(group))), "bg")
return { fg = normal_fg, bg = normal_bg }
end