From 7156a4f8114d8542ba357690662de335d6f470e3 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 17 Jun 2023 14:21:32 +0530 Subject: normalize highlight groups --- .nvimrc | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to '.nvimrc') diff --git a/.nvimrc b/.nvimrc index cfae74c..a48f8f9 100644 --- a/.nvimrc +++ b/.nvimrc @@ -2,8 +2,7 @@ iabbrev todo · iabbrev done × -" select the task list and hit `gq` to group by status -" selecting clever status symbols can determine the ordering of tasks +" select the task list and hit `gq` to sort and group by status set formatprg=sort\ -V " syntax highlighting @@ -11,22 +10,22 @@ augroup JournalSyntax autocmd! autocmd BufReadPost * set filetype=journal - autocmd BufReadPost * syntax match JournalAll /.*/ " captures the entire buffer - autocmd BufReadPost * syntax match JournalDone /^×.*/ " lines containing 'done' items: × - autocmd BufReadPost * syntax match JournalTodo /^·.*/ " lines containing 'todo' items: · - autocmd BufReadPost * syntax match JournalEvent /^o.*/ " lines containing 'event' items: o - autocmd BufReadPost * syntax match JournalNote /^- .*/ " lines containing 'note' items: - - autocmd BufReadPost * syntax match JournalMoved /^>.*/ " lines containing 'moved' items: > - autocmd BufReadPost * syntax match JournalHeader /\<\u\+\>/ " words containing capitals - - autocmd BufReadPost * highlight link JournalAll Noise - autocmd BufReadPost * highlight link JournalHeader Noise - autocmd BufReadPost * highlight link JournalDone Noise - autocmd BufReadPost * highlight link JournalMoved Noise - autocmd BufReadPost * highlight JournalEvent ctermfg=6 " cyan - autocmd BufReadPost * highlight JournalMoved ctermfg=5 " pink - autocmd BufReadPost * highlight JournalNote ctermfg=3 " yellow - autocmd BufReadPost * highlight VertSplit ctermfg=0 ctermbg=0 " hide vert splits + autocmd BufReadPost * syntax match JournalAll /.*/ " captures the entire buffer + autocmd BufReadPost * syntax match JournalDone /^×.*/ " lines containing 'done' items: × + autocmd BufReadPost * syntax match JournalTodo /^·.*/ " lines containing 'todo' items: · + autocmd BufReadPost * syntax match JournalEvent /^o.*/ " lines containing 'event' items: o + autocmd BufReadPost * syntax match JournalNote /^- .*/ " lines containing 'note' items: - + autocmd BufReadPost * syntax match JournalMoved /^>.*/ " lines containing 'moved' items: > + autocmd BufReadPost * syntax match JournalHeader /^\<\u\+\>.*/ " lines starting with caps + + autocmd BufReadPost * highlight JournalAll ctermfg=12 + autocmd BufReadPost * highlight JournalHeader ctermfg=12 + autocmd BufReadPost * highlight JournalDone ctermfg=12 + autocmd BufReadPost * highlight JournalMoved ctermfg=12 + autocmd BufReadPost * highlight JournalEvent ctermfg=6 " cyan + autocmd BufReadPost * highlight JournalMoved ctermfg=5 " pink + autocmd BufReadPost * highlight JournalNote ctermfg=3 " yellow + autocmd BufReadPost * highlight VertSplit ctermfg=0 ctermbg=0 " hide vert splits augroup END augroup JournalHideUIElements -- cgit v1.2.3