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 +++++++++++++++++------------------ flake.nix | 2 +- 2 files changed, 18 insertions(+), 19 deletions(-) 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 diff --git a/flake.nix b/flake.nix index 71c6301..6455bbf 100644 --- a/flake.nix +++ b/flake.nix @@ -9,7 +9,7 @@ { packages.x86_64-linux.default = - # starts nvim with 2 months of journal entries ahead and behing + # starts nvim with 2 months of journal entries ahead and behind # nvim --cmd 'source .nvimrc' -O 2023/10 2023/11 2023/12 2024/01 pkgs.writeScriptBin "journal" '' nvim --cmd 'source .nvimrc' -O $( -- cgit v1.2.3