Skip to content

Commit 35b1f98

Browse files
committed
fix: highlights
1 parent 57d024e commit 35b1f98

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

lua/lazy/loader.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Util = require("lazy.util")
2-
Config = require("lazy.config")
1+
local Util = require("lazy.util")
2+
local Config = require("lazy.config")
33

44
local M = {}
55

lua/lazy/view/colors.lua

+3-9
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,15 @@ M.colors = {
1515
Special = "@punctuation.special",
1616
}
1717

18-
M.did_setup = true
18+
M.did_setup = false
1919

2020
function M.set_hl()
2121
for hl_group, opts in pairs(M.colors) do
22-
hl_group = "Lazy" .. hl_group
23-
2422
if type(opts) == "string" then
25-
opts = {
26-
link = opts,
27-
}
23+
opts = { link = opts }
2824
end
29-
3025
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)
3327
end
3428
end
3529

lua/lazy/view/init.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
local Util = require("lazy.util")
12
local Render = require("lazy.view.render")
23

34
local M = {}
@@ -71,11 +72,8 @@ function M.show()
7172

7273
local render = Util.throttle(30, function()
7374
vim.bo[buf].modifiable = true
74-
7575
Render.render_plugins(buf, win, 2)
76-
7776
vim.bo[buf].modifiable = false
78-
7977
vim.cmd.redraw()
8078
end)
8179

lua/lazy/view/text.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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}
34

45
---@class Text
5-
---@field _lines TextLine[]
6+
---@field _lines TextSegment[][]
67
local Text = {}
78

89
function Text.new()

0 commit comments

Comments
 (0)