mirror of
https://github.com/gabehf/base46.git
synced 2026-03-10 07:50:31 -07:00
convert to 0.7
This commit is contained in:
parent
489408c1d0
commit
8751f27425
32 changed files with 505 additions and 512 deletions
|
|
@ -1,20 +1,13 @@
|
|||
local function highlight(group, guifg, guibg, attr, guisp)
|
||||
local parts = { group }
|
||||
if guifg then
|
||||
table.insert(parts, "guifg=#" .. guifg)
|
||||
local function highlight(group, guifg, guibg, sp, sp_color)
|
||||
local hl = {
|
||||
fg = guifg,
|
||||
bg = guibg,
|
||||
special = sp_color,
|
||||
}
|
||||
if sp ~= nil and sp ~= "none" then
|
||||
hl[sp] = true
|
||||
end
|
||||
if guibg then
|
||||
table.insert(parts, "guibg=#" .. guibg)
|
||||
end
|
||||
if attr then
|
||||
table.insert(parts, "gui=" .. attr)
|
||||
end
|
||||
if guisp then
|
||||
table.insert(parts, "guisp=#" .. guisp)
|
||||
end
|
||||
|
||||
-- nvim.ex.highlight(parts)
|
||||
vim.api.nvim_command("highlight " .. table.concat(parts, " "))
|
||||
vim.api.nvim_set_hl(0, group, hl)
|
||||
end
|
||||
|
||||
-- Modified from https://github.com/chriskempson/base16-vim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue