diff --git a/lua/cosmic/config/examples/config.lua b/lua/cosmic/config/examples/config.lua index e1eab5d..6627f6b 100644 --- a/lua/cosmic/config/examples/config.lua +++ b/lua/cosmic/config/examples/config.lua @@ -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 diff --git a/lua/cosmic/core/theme/integrated/nightfox.lua b/lua/cosmic/core/theme/integrated/nightfox.lua new file mode 100644 index 0000000..c9b2457 --- /dev/null +++ b/lua/cosmic/core/theme/integrated/nightfox.lua @@ -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 \ No newline at end of file diff --git a/lua/cosmic/core/theme/plugins.lua b/lua/cosmic/core/theme/plugins.lua index e6e6e35..2d8abf8 100644 --- a/lua/cosmic/core/theme/plugins.lua +++ b/lua/cosmic/core/theme/plugins.lua @@ -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 diff --git a/readme.md b/readme.md index 1f11d04..c92f79e 100644 --- a/readme.md +++ b/readme.md @@ -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