1
0
Files
dotfiles/config/nvim/after/syntax/qf.vim
James Bulman da251e7223 Custom syntax highlighting
For c and quickfix
Function to format the quickfix and location jump lists
Fixed issue with "help" window layouts accessing incorrect variable
2025-09-25 00:04:21 +01:00

29 lines
1.0 KiB
VimL

syn clear
" I have completely overriden the formatting for the quickfix and location list buffers so this
" has to be changed to give proper highlighting of the new format
"
syn match qfSignError "\[!\]" contained
syn match qfSignWarn "\[#\]" contained
syn match qfSignSearch "\[\~\]" contained
syn match qfFileName "^[^:]*" contains=@qfSign nextgroup=qfSeparator1
syn match qfSeparator1 ":" contained nextgroup=qfLineNr
syn match qfLineNr "[^:|]*" contained nextgroup=qfSeparator2,qfSeparator3
syn match qfSeparator2 ":" contained nextgroup=qfColumnNr
syn match qfColumnNr "[^|]*" contained
syn match qfSeparator3 "|" contained
syn cluster qfSign contains=qfSignError,qfSignWarn,qfSignSearch
hi clear qfFileName
hi clear qfLineNr
hi def link qfSignError DiagnosticSignError
hi def link qfSignWarn DiagnosticSignWarn
hi def link qfSignSearch LineNr
hi def link qfFileName Function
hi def link qfLineNr Number
hi def link qfColumnNr Number
let b:current_syntax = "qf"