summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-06-17 09:51:32 +0100
committerAkshay <[email protected]>2023-06-17 09:51:32 +0100
commit7156a4f8114d8542ba357690662de335d6f470e3 (patch)
tree7568d1bf9bbc9402c91921a640b587c8170b23b8
parentc1daf18f0b6231e3b82d08c2fdb5c694a26a7ea4 (diff)
normalize highlight groups
-rw-r--r--.nvimrc35
-rw-r--r--flake.nix2
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 @@
2iabbrev todo · 2iabbrev todo ·
3iabbrev done × 3iabbrev done ×
4 4
5" select the task list and hit `gq` to group by status 5" select the task list and hit `gq` to sort and group by status
6" selecting clever status symbols can determine the ordering of tasks
7set formatprg=sort\ -V 6set formatprg=sort\ -V
8 7
9" syntax highlighting 8" syntax highlighting
@@ -11,22 +10,22 @@ augroup JournalSyntax
11 autocmd! 10 autocmd!
12 autocmd BufReadPost * set filetype=journal 11 autocmd BufReadPost * set filetype=journal
13 12
14 autocmd BufReadPost * syntax match JournalAll /.*/ " captures the entire buffer 13 autocmd BufReadPost * syntax match JournalAll /.*/ " captures the entire buffer
15 autocmd BufReadPost * syntax match JournalDone /^×.*/ " lines containing 'done' items: × 14 autocmd BufReadPost * syntax match JournalDone /^×.*/ " lines containing 'done' items: ×
16 autocmd BufReadPost * syntax match JournalTodo /^·.*/ " lines containing 'todo' items: · 15 autocmd BufReadPost * syntax match JournalTodo /^·.*/ " lines containing 'todo' items: ·
17 autocmd BufReadPost * syntax match JournalEvent /^o.*/ " lines containing 'event' items: o 16 autocmd BufReadPost * syntax match JournalEvent /^o.*/ " lines containing 'event' items: o
18 autocmd BufReadPost * syntax match JournalNote /^- .*/ " lines containing 'note' items: - 17 autocmd BufReadPost * syntax match JournalNote /^- .*/ " lines containing 'note' items: -
19 autocmd BufReadPost * syntax match JournalMoved /^>.*/ " lines containing 'moved' items: > 18 autocmd BufReadPost * syntax match JournalMoved /^>.*/ " lines containing 'moved' items: >
20 autocmd BufReadPost * syntax match JournalHeader /\<\u\+\>/ " words containing capitals 19 autocmd BufReadPost * syntax match JournalHeader /^\<\u\+\>.*/ " lines starting with caps
21 20
22 autocmd BufReadPost * highlight link JournalAll Noise 21 autocmd BufReadPost * highlight JournalAll ctermfg=12
23 autocmd BufReadPost * highlight link JournalHeader Noise 22 autocmd BufReadPost * highlight JournalHeader ctermfg=12
24 autocmd BufReadPost * highlight link JournalDone Noise 23 autocmd BufReadPost * highlight JournalDone ctermfg=12
25 autocmd BufReadPost * highlight link JournalMoved Noise 24 autocmd BufReadPost * highlight JournalMoved ctermfg=12
26 autocmd BufReadPost * highlight JournalEvent ctermfg=6 " cyan 25 autocmd BufReadPost * highlight JournalEvent ctermfg=6 " cyan
27 autocmd BufReadPost * highlight JournalMoved ctermfg=5 " pink 26 autocmd BufReadPost * highlight JournalMoved ctermfg=5 " pink
28 autocmd BufReadPost * highlight JournalNote ctermfg=3 " yellow 27 autocmd BufReadPost * highlight JournalNote ctermfg=3 " yellow
29 autocmd BufReadPost * highlight VertSplit ctermfg=0 ctermbg=0 " hide vert splits 28 autocmd BufReadPost * highlight VertSplit ctermfg=0 ctermbg=0 " hide vert splits
30augroup END 29augroup END
31 30
32augroup JournalHideUIElements 31augroup JournalHideUIElements
diff --git a/flake.nix b/flake.nix
index 71c6301..6455bbf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -9,7 +9,7 @@
9 { 9 {
10 10
11 packages.x86_64-linux.default = 11 packages.x86_64-linux.default =
12 # starts nvim with 2 months of journal entries ahead and behing 12 # starts nvim with 2 months of journal entries ahead and behind
13 # nvim --cmd 'source .nvimrc' -O 2023/10 2023/11 2023/12 2024/01 13 # nvim --cmd 'source .nvimrc' -O 2023/10 2023/11 2023/12 2024/01
14 pkgs.writeScriptBin "journal" '' 14 pkgs.writeScriptBin "journal" ''
15 nvim --cmd 'source .nvimrc' -O $( 15 nvim --cmd 'source .nvimrc' -O $(