mirror of
https://github.com/gabehf/base46.git
synced 2026-03-09 15:38:15 -07:00
Cleanup
no need to use external functions, these are now part of neovim core
This commit is contained in:
parent
78b42334e8
commit
011976ee1b
2 changed files with 22 additions and 213 deletions
|
|
@ -1,5 +1,3 @@
|
|||
local nvim = require 'nvim'
|
||||
|
||||
local function highlight(group, guifg, guibg, attr, guisp)
|
||||
local parts = {group}
|
||||
if guifg then table.insert(parts, "guifg=#"..guifg) end
|
||||
|
|
@ -17,29 +15,29 @@ end
|
|||
local function apply_base16_theme(theme)
|
||||
|
||||
-- Neovim terminal colours
|
||||
if nvim.fn.has("nvim") then
|
||||
nvim.g.terminal_color_0 = "#"..theme.base00
|
||||
nvim.g.terminal_color_1 = "#"..theme.base08
|
||||
nvim.g.terminal_color_2 = "#"..theme.base0B
|
||||
nvim.g.terminal_color_3 = "#"..theme.base0A
|
||||
nvim.g.terminal_color_4 = "#"..theme.base0D
|
||||
nvim.g.terminal_color_5 = "#"..theme.base0E
|
||||
nvim.g.terminal_color_6 = "#"..theme.base0C
|
||||
nvim.g.terminal_color_7 = "#"..theme.base05
|
||||
nvim.g.terminal_color_8 = "#"..theme.base03
|
||||
nvim.g.terminal_color_9 = "#"..theme.base08
|
||||
nvim.g.terminal_color_10 = "#"..theme.base0B
|
||||
nvim.g.terminal_color_11 = "#"..theme.base0A
|
||||
nvim.g.terminal_color_12 = "#"..theme.base0D
|
||||
nvim.g.terminal_color_13 = "#"..theme.base0E
|
||||
nvim.g.terminal_color_14 = "#"..theme.base0C
|
||||
nvim.g.terminal_color_15 = "#"..theme.base07
|
||||
if nvim.o.background == "light" then
|
||||
nvim.g.terminal_color_background = "#"..theme.base05
|
||||
nvim.g.terminal_color_foreground = "#"..theme.base0B
|
||||
if vim.fn.has("nvim") then
|
||||
vim.g.terminal_color_0 = "#"..theme.base00
|
||||
vim.g.terminal_color_1 = "#"..theme.base08
|
||||
vim.g.terminal_color_2 = "#"..theme.base0B
|
||||
vim.g.terminal_color_3 = "#"..theme.base0A
|
||||
vim.g.terminal_color_4 = "#"..theme.base0D
|
||||
vim.g.terminal_color_5 = "#"..theme.base0E
|
||||
vim.g.terminal_color_6 = "#"..theme.base0C
|
||||
vim.g.terminal_color_7 = "#"..theme.base05
|
||||
vim.g.terminal_color_8 = "#"..theme.base03
|
||||
vim.g.terminal_color_9 = "#"..theme.base08
|
||||
vim.g.terminal_color_10 = "#"..theme.base0B
|
||||
vim.g.terminal_color_11 = "#"..theme.base0A
|
||||
vim.g.terminal_color_12 = "#"..theme.base0D
|
||||
vim.g.terminal_color_13 = "#"..theme.base0E
|
||||
vim.g.terminal_color_14 = "#"..theme.base0C
|
||||
vim.g.terminal_color_15 = "#"..theme.base07
|
||||
if vim.o.background == "light" then
|
||||
vim.g.terminal_color_background = "#"..theme.base05
|
||||
vim.g.terminal_color_foreground = "#"..theme.base0B
|
||||
else
|
||||
nvim.g.terminal_color_background = "#"..theme.base00
|
||||
nvim.g.terminal_color_foreground = "#"..theme.base0E
|
||||
vim.g.terminal_color_background = "#"..theme.base00
|
||||
vim.g.terminal_color_foreground = "#"..theme.base0E
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue