feat(themes): add kanagawa.lua

This commit is contained in:
Matt Leong 2021-12-29 09:40:24 -08:00
parent 2f6ddcce43
commit 485a3f3d94
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,24 @@
local theme_colors = require('kanagawa.colors').setup()
local colors = {
white = theme_colors.fujiWhite,
bg = theme_colors.sumiInk0,
bg_highlight = theme_colors.sumiInk2,
normal = theme_colors.sumiInk4,
insert = theme_colors.waveBlue2,
command = theme_colors.boatYellow2,
visual = theme_colors.dragonBlue,
replace = theme_colors.autumnRed,
diffAdd = theme_colors.autumnGreen,
diffModified = theme_colors.autumnYellow,
diffDeleted = theme_colors.autumnRed,
trace = theme_colors.surimiOrange,
hint = theme_colors.dragonBlue,
info = theme_colors.waveAqua1,
error = theme_colors.samuraiRed,
warn = theme_colors.roninYellow,
floatBorder = theme_colors.sumiInk4,
selection_caret = theme_colors.oniViolet,
}
return colors

View file

@ -10,6 +10,7 @@ M.supported_themes = {
'onedark',
'rose-pine',
'tokyonight',
'kanagawa',
}
function M.init(use, config)
@ -112,6 +113,16 @@ function M.init(use, config)
end,
disable = config.theme ~= 'enfocado',
})
use({
'rebelot/kanagawa.nvim',
as = 'kanagawa',
config = function()
-- setup must be called before loading
vim.cmd('colorscheme kanagawa')
end,
disable = config.theme ~= 'kanagawa',
})
end
return M