delete useless module
This commit is contained in:
parent
58659399ea
commit
1f54b36502
1 changed files with 0 additions and 24 deletions
|
@ -1,24 +0,0 @@
|
||||||
local M = {}
|
|
||||||
|
|
||||||
M.set_highlight = function(hi, colors)
|
|
||||||
local hi_str = ''
|
|
||||||
|
|
||||||
for k, v in pairs(colors) do
|
|
||||||
hi_str = hi_str .. k .. '=' .. v .. ' '
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.cmd(('hi %s %s'):format(hi, hi_str))
|
|
||||||
end
|
|
||||||
|
|
||||||
M.get_highlight = function(hi)
|
|
||||||
local hi_str = vim.api.nvim_command_output(('hi %s'):format(hi))
|
|
||||||
|
|
||||||
local colors = {}
|
|
||||||
for key, val in string.gmatch(hi_str, '(%w+)=(%S+)') do
|
|
||||||
colors[key] = val
|
|
||||||
end
|
|
||||||
|
|
||||||
return colors
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
Loading…
Add table
Reference in a new issue