mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 23:22:39 +00:00
api: add API for themes
co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
This commit is contained in:
@@ -1289,7 +1289,7 @@ local function fmt_ext_state(name, state)
|
||||
for k,v in pairs(state) do
|
||||
str = (str.." ["..k.."] = {win = {id = "..v.win.id.."}, topline = "
|
||||
..v.topline..", botline = "..v.botline..", curline = "..v.curline
|
||||
..", curcol = "..v.curcol.."},\n")
|
||||
..", curcol = "..v.curcol.."};\n")
|
||||
end
|
||||
return str .. "}"
|
||||
else
|
||||
@@ -1316,7 +1316,7 @@ function Screen:print_snapshot(attrs, ignore)
|
||||
dict = "{"..self:_pprint_attrs(a).."}"
|
||||
end
|
||||
local keyval = (type(i) == "number") and "["..tostring(i).."]" or i
|
||||
table.insert(attrstrs, " "..keyval.." = "..dict..",")
|
||||
table.insert(attrstrs, " "..keyval.." = "..dict..";")
|
||||
end
|
||||
attrstr = (", attr_ids={\n"..table.concat(attrstrs, "\n").."\n}")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user