Support for Neovim Monokai theme (#74)
This commit is contained in:
parent
03ae0d8999
commit
10a4b6e29c
3 changed files with 37 additions and 0 deletions
25
lua/cosmic/theme/integrated/monokai.lua
Normal file
25
lua/cosmic/theme/integrated/monokai.lua
Normal 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
|
||||||
|
|
|
@ -7,6 +7,7 @@ M.supported_themes = {
|
||||||
'github',
|
'github',
|
||||||
'gruvbox',
|
'gruvbox',
|
||||||
'kanagawa',
|
'kanagawa',
|
||||||
|
'monokai',
|
||||||
'nightfox',
|
'nightfox',
|
||||||
'nord',
|
'nord',
|
||||||
'onedark',
|
'onedark',
|
||||||
|
@ -153,6 +154,16 @@ function M.init(use, config)
|
||||||
end,
|
end,
|
||||||
disable = config.theme ~= 'github',
|
disable = config.theme ~= 'github',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
use({
|
||||||
|
'tanvirtin/monokai.nvim',
|
||||||
|
as = 'monokai',
|
||||||
|
config = function()
|
||||||
|
require('monokai').setup()
|
||||||
|
end,
|
||||||
|
disable = config.theme ~= 'monokai',
|
||||||
|
commit = "bff619d7a911cd8d8dcb5168db9ee6dfcc344934",
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -90,6 +90,7 @@ CosmicNvim comes with first-class support for the following themes:
|
||||||
- [Github](https://github.com/projekt0n/github-nvim-theme)
|
- [Github](https://github.com/projekt0n/github-nvim-theme)
|
||||||
- [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim)
|
- [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim)
|
||||||
- [Kanagawa](https://github.com/rebelot/kanagawa.nvim)
|
- [Kanagawa](https://github.com/rebelot/kanagawa.nvim)
|
||||||
|
- [Monokai](https://github.com/tanvirtin/monokai.nvim)
|
||||||
- [Nightfox](https://github.com/EdenEast/nightfox.nvim)
|
- [Nightfox](https://github.com/EdenEast/nightfox.nvim)
|
||||||
- [Nord](https://github.com/shaunsingh/nord.nvim)
|
- [Nord](https://github.com/shaunsingh/nord.nvim)
|
||||||
- [Onedark](https://github.com/navarasu/onedark.nvim)
|
- [Onedark](https://github.com/navarasu/onedark.nvim)
|
||||||
|
|
Loading…
Add table
Reference in a new issue