feat(themes): add kanagawa.lua
This commit is contained in:
parent
2f6ddcce43
commit
485a3f3d94
2 changed files with 35 additions and 0 deletions
24
lua/cosmic/theme/integrated/kanagawa.lua
Normal file
24
lua/cosmic/theme/integrated/kanagawa.lua
Normal 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
|
|
@ -10,6 +10,7 @@ M.supported_themes = {
|
||||||
'onedark',
|
'onedark',
|
||||||
'rose-pine',
|
'rose-pine',
|
||||||
'tokyonight',
|
'tokyonight',
|
||||||
|
'kanagawa',
|
||||||
}
|
}
|
||||||
|
|
||||||
function M.init(use, config)
|
function M.init(use, config)
|
||||||
|
@ -112,6 +113,16 @@ function M.init(use, config)
|
||||||
end,
|
end,
|
||||||
disable = config.theme ~= 'enfocado',
|
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
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Add table
Reference in a new issue