Commit c8c1e09 1 parent 40b5489 commit c8c1e09 Copy full SHA for c8c1e09
File tree 3 files changed +32
-3
lines changed
3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
- local M = {}
1
+ local M = { unique_hlgroup = ' ____0 ' }
2
2
local api = vim .api
3
3
4
4
function M .await_VimEnter ()
Original file line number Diff line number Diff line change
1
+ local assert = require (' luassert' )
2
+ local t_util = require (' github-theme._test.util' )
3
+ local uniqgrp = t_util .unique_hlgroup
4
+
5
+ if vim .fn .has (' nvim-0.9.0' ) == 0 or vim .fn .has (' nvim-0.9.0' ) == false then
6
+ return
7
+ end
8
+
9
+ describe (' compiler' , function ()
10
+ before_each (function ()
11
+ require (' github-theme.util.reload' )(true )
12
+ end )
13
+
14
+ it (' should consider previously-set overrides (1)' , function ()
15
+ local same_opts = {}
16
+ require (' github-theme' ).setup (same_opts )
17
+ require (' github-theme.override' ).groups = { all = { Normal = { link = uniqgrp } } }
18
+ require (' github-theme' ).setup (same_opts )
19
+ vim .cmd .colorscheme ({ args = { ' github_dark_dimmed' } })
20
+ assert .same ({ link = uniqgrp }, t_util .get_hl (' Normal' , true ))
21
+ end )
22
+
23
+ it (' should consider previously-set overrides (2)' , function ()
24
+ require (' github-theme' ).setup ({})
25
+ require (' github-theme.override' ).groups = { all = { Normal = { link = uniqgrp } } }
26
+ vim .cmd .colorscheme ({ args = { ' github_dark_dimmed' } })
27
+ assert .same ({ link = uniqgrp }, t_util .get_hl (' Normal' , true ))
28
+ end )
29
+ end )
Original file line number Diff line number Diff line change 3
3
vim .loader.disable ()
4
4
end
5
5
.
6
- set rtp + = .
7
- set rtp + = ./test/ plenary
6
+ set rtp ^ = .
7
+ set rtp ^ = ./test/ plenary
8
8
runtime ! plugin /plenary.vim
You can’t perform that action at this time.
0 commit comments