Support for Neovim Monokai theme (#74)

This commit is contained in:
anstylian 2022-06-16 16:44:44 +03:00 committed by GitHub
parent 03ae0d8999
commit 10a4b6e29c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,25 @@
local palette = require('monokai').classic;
local colors = {
white = palette.white,
bg = palette.base2,
bg_highlight = palette.base1,
normal = palette.aqua,
insert = palette.green,
command = palette.orange,
visual = palette.yellow,
replace = palette.red,
diffAdd = palette.diff_add,
diffModified = palette.diff_change,
diffDeleted = palette.diff_remove,
trace = palette.orange,
hint = palette.aqua,
info = palette.green,
error = palette.red,
warn = palette.orange,
floatBorder = palette.border,
selection_caret = palette.pink,
}
return colors

View file

@ -7,6 +7,7 @@ M.supported_themes = {
'github',
'gruvbox',
'kanagawa',
'monokai',
'nightfox',
'nord',
'onedark',
@ -153,6 +154,16 @@ function M.init(use, config)
end,
disable = config.theme ~= 'github',
})
use({
'tanvirtin/monokai.nvim',
as = 'monokai',
config = function()
require('monokai').setup()
end,
disable = config.theme ~= 'monokai',
commit = "bff619d7a911cd8d8dcb5168db9ee6dfcc344934",
})
end
return M

View file

@ -90,6 +90,7 @@ CosmicNvim comes with first-class support for the following themes:
- [Github](https://github.com/projekt0n/github-nvim-theme)
- [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim)
- [Kanagawa](https://github.com/rebelot/kanagawa.nvim)
- [Monokai](https://github.com/tanvirtin/monokai.nvim)
- [Nightfox](https://github.com/EdenEast/nightfox.nvim)
- [Nord](https://github.com/shaunsingh/nord.nvim)
- [Onedark](https://github.com/navarasu/onedark.nvim)