+16
-17
.nvimrc
+16
-17
.nvimrc
···
2
iabbrev todo ·
3
iabbrev done ×
4
5
-
" select the task list and hit `gq` to group by status
6
-
" selecting clever status symbols can determine the ordering of tasks
7
set formatprg=sort\ -V
8
9
" syntax highlighting
···
11
autocmd!
12
autocmd BufReadPost * set filetype=journal
13
14
-
autocmd BufReadPost * syntax match JournalAll /.*/ " captures the entire buffer
15
-
autocmd BufReadPost * syntax match JournalDone /^×.*/ " lines containing 'done' items: ×
16
-
autocmd BufReadPost * syntax match JournalTodo /^·.*/ " lines containing 'todo' items: ·
17
-
autocmd BufReadPost * syntax match JournalEvent /^o.*/ " lines containing 'event' items: o
18
-
autocmd BufReadPost * syntax match JournalNote /^- .*/ " lines containing 'note' items: -
19
-
autocmd BufReadPost * syntax match JournalMoved /^>.*/ " lines containing 'moved' items: >
20
-
autocmd BufReadPost * syntax match JournalHeader /\<\u\+\>/ " words containing capitals
21
22
-
autocmd BufReadPost * highlight link JournalAll Noise
23
-
autocmd BufReadPost * highlight link JournalHeader Noise
24
-
autocmd BufReadPost * highlight link JournalDone Noise
25
-
autocmd BufReadPost * highlight link JournalMoved Noise
26
-
autocmd BufReadPost * highlight JournalEvent ctermfg=6 " cyan
27
-
autocmd BufReadPost * highlight JournalMoved ctermfg=5 " pink
28
-
autocmd BufReadPost * highlight JournalNote ctermfg=3 " yellow
29
-
autocmd BufReadPost * highlight VertSplit ctermfg=0 ctermbg=0 " hide vert splits
30
augroup END
31
32
augroup JournalHideUIElements
···
2
iabbrev todo ·
3
iabbrev done ×
4
5
+
" select the task list and hit `gq` to sort and group by status
6
set formatprg=sort\ -V
7
8
" syntax highlighting
···
10
autocmd!
11
autocmd BufReadPost * set filetype=journal
12
13
+
autocmd BufReadPost * syntax match JournalAll /.*/ " captures the entire buffer
14
+
autocmd BufReadPost * syntax match JournalDone /^×.*/ " lines containing 'done' items: ×
15
+
autocmd BufReadPost * syntax match JournalTodo /^·.*/ " lines containing 'todo' items: ·
16
+
autocmd BufReadPost * syntax match JournalEvent /^o.*/ " lines containing 'event' items: o
17
+
autocmd BufReadPost * syntax match JournalNote /^- .*/ " lines containing 'note' items: -
18
+
autocmd BufReadPost * syntax match JournalMoved /^>.*/ " lines containing 'moved' items: >
19
+
autocmd BufReadPost * syntax match JournalHeader /^\<\u\+\>.*/ " lines starting with caps
20
21
+
autocmd BufReadPost * highlight JournalAll ctermfg=12
22
+
autocmd BufReadPost * highlight JournalHeader ctermfg=12
23
+
autocmd BufReadPost * highlight JournalDone ctermfg=12
24
+
autocmd BufReadPost * highlight JournalMoved ctermfg=12
25
+
autocmd BufReadPost * highlight JournalEvent ctermfg=6 " cyan
26
+
autocmd BufReadPost * highlight JournalMoved ctermfg=5 " pink
27
+
autocmd BufReadPost * highlight JournalNote ctermfg=3 " yellow
28
+
autocmd BufReadPost * highlight VertSplit ctermfg=0 ctermbg=0 " hide vert splits
29
augroup END
30
31
augroup JournalHideUIElements
+1
-1
flake.nix
+1
-1
flake.nix