added nightfox colors (#29)

* added nightfox colours

Co-authored-by: Harun Sheikhali <harun.sheikhali@agilebits.com>
This commit is contained in:
Harun Sheikhali 2021-11-21 21:31:30 -05:00 committed by GitHub
parent a14a4bb118
commit 9b27aae4c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 0 deletions

View file

@ -22,6 +22,7 @@ config.treesitter = {}
-- 'gruvbox'
-- 'nord'
-- 'rose-pine'
-- nightfox
config.theme = 'tokyonight' -- don't define or set to nil, if you want to enable your own theme in cosmic/config/plugins.lua
-- lsp settings

View file

@ -0,0 +1,26 @@
local theme = require('nightfox.colors')
local themeColors = theme.init()
local colors = {
white = themeColors.fg_alt,
bg = themeColors.bg,
bg_highlight = themeColors.bg_highlight,
statusline_bg = themeColors.bg_alt,
normal = themeColors.blue,
insert = themeColors.cyan,
command = themeColors.orange,
visual = themeColors.magenta,
replace = themeColors.red,
diffAdd = themeColors.git.add,
diffModified = themeColors.git.change,
diffDeleted = themeColors.git.delete,
trace = themeColors.orange,
hint = themeColors.cyan,
info = themeColors.green_br,
error = themeColors.magenta_br,
warn = themeColors.orange,
floatBorder = themeColors.border_highlight,
selection_caret = themeColors.pink,
}
return colors

View file

@ -5,6 +5,7 @@ M.supported_themes = {
'catppuccin',
'gruvbox',
'rose-pine',
'nightfox',
'nord',
}
@ -62,6 +63,16 @@ function M.init(use, config)
end,
disable = config.theme ~= 'rose-pine',
})
use({
'EdenEast/nightfox.nvim',
as = 'nightfox',
config = function()
vim.cmd('color nightfox')
end,
disable = config.theme ~= 'nightfox'
})
end
return M

View file

@ -79,6 +79,7 @@ CosmicNvim comes with first-class support for the following themes:
- [Rose-pine](https://github.com/rose-pine/neovim)
- [Nord](https://github.com/shaunsingh/nord.nvim)
- [Tokyonight](https://github.com/folke/tokyonight.nvim)
- [Nightfox](https://github.com/EdenEast/nightfox.nvim)
## Configuration