Skip to content

Commit

Permalink
Fix highlight for usernames (#83)
Browse files Browse the repository at this point in the history
Changes regular expression for Gitlab usernames.
  • Loading branch information
mrparalon authored Nov 8, 2023
1 parent 9742b5b commit a032c64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion after/syntax/gitlab.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down
4 changes: 2 additions & 2 deletions lua/gitlab/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a032c64

Please sign in to comment.