From 17cc41a0e4c431d899b3d9f70930a73ee9f521fc Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Wed, 29 Dec 2021 09:55:20 -0800 Subject: [PATCH] feat(themes): add github --- lua/cosmic/theme/integrated/github.lua | 24 ++++++++++++++++++++++++ lua/cosmic/theme/plugins.lua | 13 +++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 lua/cosmic/theme/integrated/github.lua diff --git a/lua/cosmic/theme/integrated/github.lua b/lua/cosmic/theme/integrated/github.lua new file mode 100644 index 0000000..c97c7dc --- /dev/null +++ b/lua/cosmic/theme/integrated/github.lua @@ -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 diff --git a/lua/cosmic/theme/plugins.lua b/lua/cosmic/theme/plugins.lua index f7a0ba6..14436f0 100644 --- a/lua/cosmic/theme/plugins.lua +++ b/lua/cosmic/theme/plugins.lua @@ -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