mirror of
https://github.com/gabehf/base46.git
synced 2026-03-17 11:16:28 -07:00
misc
This commit is contained in:
parent
24634e947c
commit
ef124d74b7
1 changed files with 14 additions and 13 deletions
|
|
@ -101,6 +101,8 @@ end
|
||||||
-- save table
|
-- save table
|
||||||
M.table_to_file = function(filename, tb)
|
M.table_to_file = function(filename, tb)
|
||||||
local file = io.open(filename, "w")
|
local file = io.open(filename, "w")
|
||||||
|
|
||||||
|
if file then
|
||||||
local result = ""
|
local result = ""
|
||||||
|
|
||||||
for hlgroupName, hlgroup_vals in pairs(tb) do
|
for hlgroupName, hlgroup_vals in pairs(tb) do
|
||||||
|
|
@ -115,7 +117,6 @@ M.table_to_file = function(filename, tb)
|
||||||
result = result .. "vim.api.nvim_set_hl(0," .. hlname .. "{" .. opts .. "})"
|
result = result .. "vim.api.nvim_set_hl(0," .. hlname .. "{" .. opts .. "})"
|
||||||
end
|
end
|
||||||
|
|
||||||
if file then
|
|
||||||
file:write(result)
|
file:write(result)
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue