Skip to content

Commit ba6e234

Browse files
committed
fix: #140, type annotation not match
1 parent 4ceee25 commit ba6e234

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lua/hlchunk/mods/base_mod/base_conf.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ local ft = require("hlchunk.utils.filetype")
77
---| HexColor # a single color
88
---| HexColor[] # a rgb color string array, e.g. {"#ff0000", "#00ff00"}
99
---| vim.api.keyset.highlight[] # a style entry array, e.g. {{bg = "#ff0000", fg = "#00ff00"}, {bg = "#00ff00", fg = "#ff0000"}}
10+
---| vim.api.keyset.get_hl_info[] # return value of `vim.api.nvim_get_hl()`
1011
---@alias StyleTypeFunction fun(): StyleTypeBase
1112
---@alias HlChunk.StyleType StyleTypeBase | StyleTypeFunction
1213

lua/hlchunk/mods/indent/indent_conf.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ local BaseConf = require("hlchunk.mods.base_mod.base_conf")
1515
---@field filter_list table<number, function>
1616
---@overload fun(conf?: HlChunk.UserIndentConf): HlChunk.IndentConf
1717
local IndentConf = class(BaseConf, function(self, conf)
18+
---@type HlChunk.IndentConf
1819
local default_conf = {
1920
style = { vim.api.nvim_get_hl(0, { name = "Whitespace" }) },
2021
priority = 10,

0 commit comments

Comments
 (0)