aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/share/nvim/site/t/themes.vim
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-10 19:46:27 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-10 19:46:27 +0300
commitf030afd547a56ce3d6156a0a92dddaae275ee1d4 (patch)
tree023a5751169cc6ffdec1af998d703b5b8bcdae9f /dotfiles/.local/share/nvim/site/t/themes.vim
parent812bcaaf2622dc27310e8579c181394cbc68f7a2 (diff)
downloadvimrice-f030afd547a56ce3d6156a0a92dddaae275ee1d4.tar.gz
vimrice-f030afd547a56ce3d6156a0a92dddaae275ee1d4.zip
simplify vim rice: use vimplug for managing plugins
Diffstat (limited to 'dotfiles/.local/share/nvim/site/t/themes.vim')
-rw-r--r--dotfiles/.local/share/nvim/site/t/themes.vim72
1 files changed, 0 insertions, 72 deletions
diff --git a/dotfiles/.local/share/nvim/site/t/themes.vim b/dotfiles/.local/share/nvim/site/t/themes.vim
deleted file mode 100644
index bff302b..0000000
--- a/dotfiles/.local/share/nvim/site/t/themes.vim
+++ /dev/null
@@ -1,72 +0,0 @@
-describe 'themes'
- after
- highlight clear Foo
- highlight clear Normal
- end
-
- it 'should extract correct colors'
- call airline#highlighter#reset_hlcache()
- highlight Foo ctermfg=1 ctermbg=2
- let colors = airline#themes#get_highlight('Foo')
- Expect colors[2] == '1'
- Expect colors[3] == '2'
- end
-
- it 'should extract from normal if colors unavailable'
- call airline#highlighter#reset_hlcache()
- highlight Normal ctermfg=100 ctermbg=200
- highlight Foo ctermbg=2
- let colors = airline#themes#get_highlight('Foo')
- Expect colors[2] == '100'
- Expect colors[3] == '2'
- end
-
- it 'should flip target group if it is reversed'
- call airline#highlighter#reset_hlcache()
- highlight Foo ctermbg=222 ctermfg=103 term=reverse
- let colors = airline#themes#get_highlight('Foo')
- Expect colors[2] == '222'
- Expect colors[3] == '103'
- end
-
- it 'should pass args through correctly'
- call airline#highlighter#reset_hlcache()
- hi clear Normal
- let hl = airline#themes#get_highlight('Foo', 'bold', 'italic')
- Expect hl == ['', '', 'NONE', 'NONE', 'bold,italic']
-
- let hl = airline#themes#get_highlight2(['Foo','bg'], ['Foo','fg'], 'italic', 'bold')
- Expect hl == ['', '', 'NONE', 'NONE', 'italic,bold']
- end
-
- it 'should generate color map with mirroring'
- let map = airline#themes#generate_color_map(
- \ [ 1, 1, 1, 1, '1' ],
- \ [ 2, 2, 2, 2, '2' ],
- \ [ 3, 3, 3, 3, '3' ],
- \ )
- Expect map.airline_a[0] == 1
- Expect map.airline_b[0] == 2
- Expect map.airline_c[0] == 3
- Expect map.airline_x[0] == 3
- Expect map.airline_y[0] == 2
- Expect map.airline_z[0] == 1
- end
-
- it 'should generate color map with full set of colors'
- let map = airline#themes#generate_color_map(
- \ [ 1, 1, 1, 1, '1' ],
- \ [ 2, 2, 2, 2, '2' ],
- \ [ 3, 3, 3, 3, '3' ],
- \ [ 4, 4, 4, 4, '4' ],
- \ [ 5, 5, 5, 5, '5' ],
- \ [ 6, 6, 6, 6, '6' ],
- \ )
- Expect map.airline_a[0] == 1
- Expect map.airline_b[0] == 2
- Expect map.airline_c[0] == 3
- Expect map.airline_x[0] == 4
- Expect map.airline_y[0] == 5
- Expect map.airline_z[0] == 6
- end
-end