File tree 4 files changed +10
-17
lines changed
4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
- Util = require (" lazy.util" )
2
- Config = require (" lazy.config" )
1
+ local Util = require (" lazy.util" )
2
+ local Config = require (" lazy.config" )
3
3
4
4
local M = {}
5
5
Original file line number Diff line number Diff line change @@ -15,21 +15,15 @@ M.colors = {
15
15
Special = " @punctuation.special" ,
16
16
}
17
17
18
- M .did_setup = true
18
+ M .did_setup = false
19
19
20
20
function M .set_hl ()
21
21
for hl_group , opts in pairs (M .colors ) do
22
- hl_group = " Lazy" .. hl_group
23
-
24
22
if type (opts ) == " string" then
25
- opts = {
26
- link = opts ,
27
- }
23
+ opts = { link = opts }
28
24
end
29
-
30
25
opts .default = true
31
-
32
- vim .api .nvim_set_hl (0 , hl_group , opts )
26
+ vim .api .nvim_set_hl (0 , " Lazy" .. hl_group , opts )
33
27
end
34
28
end
35
29
Original file line number Diff line number Diff line change
1
+ local Util = require (" lazy.util" )
1
2
local Render = require (" lazy.view.render" )
2
3
3
4
local M = {}
@@ -71,11 +72,8 @@ function M.show()
71
72
72
73
local render = Util .throttle (30 , function ()
73
74
vim .bo [buf ].modifiable = true
74
-
75
75
Render .render_plugins (buf , win , 2 )
76
-
77
76
vim .bo [buf ].modifiable = false
78
-
79
77
vim .cmd .redraw ()
80
78
end )
81
79
Original file line number Diff line number Diff line change 1
- --- @alias TextString { str : string , hl ?: string , extmark ?: table }
2
- --- @alias TextLine TextString[]
1
+ local Config = require (" lazy.config" )
2
+
3
+ --- @alias TextSegment { str : string , hl ?: string , extmark ?: table }
3
4
4
5
--- @class Text
5
- --- @field _lines TextLine []
6
+ --- @field _lines TextSegment[] []
6
7
local Text = {}
7
8
8
9
function Text .new ()
You can’t perform that action at this time.
0 commit comments