feat(themes): add github
This commit is contained in:
parent
485a3f3d94
commit
17cc41a0e4
2 changed files with 35 additions and 2 deletions
24
lua/cosmic/theme/integrated/github.lua
Normal file
24
lua/cosmic/theme/integrated/github.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
local theme_colors = require('github-theme.colors').setup()
|
||||
|
||||
local colors = {
|
||||
white = theme_colors.white,
|
||||
bg = theme_colors.bg_statusline,
|
||||
bg_highlight = theme_colors.fg_statusline,
|
||||
normal = theme_colors.blue,
|
||||
insert = theme_colors.green,
|
||||
command = theme_colors.bright_magenta,
|
||||
visual = theme_colors.yellow,
|
||||
replace = theme_colors.red,
|
||||
diffAdd = theme_colors.git.add,
|
||||
diffModified = theme_colors.git.change,
|
||||
diffDeleted = theme_colors.git.delete,
|
||||
trace = theme_colors.orange,
|
||||
hint = theme_colors.hint,
|
||||
info = theme_colors.info,
|
||||
error = theme_colors.error,
|
||||
warn = theme_colors.warn,
|
||||
floatBorder = theme_colors.border,
|
||||
selection_caret = theme_colors.magenta,
|
||||
}
|
||||
|
||||
return colors
|
|
@ -4,13 +4,14 @@ M.supported_themes = {
|
|||
'catppuccin',
|
||||
'dracula',
|
||||
'enfocado',
|
||||
'github',
|
||||
'gruvbox',
|
||||
'kanagawa',
|
||||
'nightfox',
|
||||
'nord',
|
||||
'onedark',
|
||||
'rose-pine',
|
||||
'tokyonight',
|
||||
'kanagawa',
|
||||
}
|
||||
|
||||
function M.init(use, config)
|
||||
|
@ -118,11 +119,19 @@ function M.init(use, config)
|
|||
'rebelot/kanagawa.nvim',
|
||||
as = 'kanagawa',
|
||||
config = function()
|
||||
-- setup must be called before loading
|
||||
vim.cmd('colorscheme kanagawa')
|
||||
end,
|
||||
disable = config.theme ~= 'kanagawa',
|
||||
})
|
||||
|
||||
use({
|
||||
'projekt0n/github-nvim-theme',
|
||||
as = 'github',
|
||||
config = function()
|
||||
require('github-theme').setup()
|
||||
end,
|
||||
disable = config.theme ~= 'github',
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Reference in a new issue