diff --git a/lua/cosmic/config/examples/config.lua b/lua/cosmic/config/examples/config.lua index 60733bc..e58baee 100644 --- a/lua/cosmic/config/examples/config.lua +++ b/lua/cosmic/config/examples/config.lua @@ -20,6 +20,7 @@ config.treesitter = {} -- theming, don't forget to run :PackerSync and reload CosmicNvim when chaning themes -- 'catppuccin' -- 'dracula' +-- 'enfocado' -- 'gruvbox' -- 'nightfox' -- 'nord' diff --git a/lua/cosmic/core/theme/integrated/enfocado.lua b/lua/cosmic/core/theme/integrated/enfocado.lua new file mode 100644 index 0000000..c40620e --- /dev/null +++ b/lua/cosmic/core/theme/integrated/enfocado.lua @@ -0,0 +1,47 @@ +local theme = { + bg_0 = '#181818', + bg_1 = '#252525', + bg_2 = '#3B3B3B', + dim_0 = '#777777', + fg_0 = '#B9B9B9', + fg_1 = '#DEDEDE', + red = '#ED4A46', + green = '#70B433', + yellow = '#DBB32D', + blue = '#368AEB', + magenta = '#EB6EB7', + cyan = '#3FC5B7', + orange = '#E67F43', + violet = '#A580E2', + br_red = '#FF5E56', + br_green = '#83C746', + br_yellow = '#EFC541', + br_blue = '#4F9CFE', + br_magenta = '#FF81CA', + br_cyan = '#56D8C9', + br_orange = '#FA9153', + br_violet = '#B891F5', +} + +local colors = { + white = theme.fg_1, + bg = theme.bg_2, + bg_highlight = theme.bg_2, + statusline_bg = theme.bg_1, + normal = theme.green, + insert = theme.cyan, + command = theme.orange, + visual = theme.violet, + replace = theme.br_red, + diffAdd = theme.green, + diffModified = theme.orange, + diffDeleted = theme.red, + trace = theme.orange, + hint = theme.cyan, + info = theme.green, + error = theme.red, + warn = theme.orange, + floatBorder = theme.blue, + selection_caret = theme.blue, +} +return colors diff --git a/lua/cosmic/core/theme/plugins.lua b/lua/cosmic/core/theme/plugins.lua index 71882a1..d07658c 100644 --- a/lua/cosmic/core/theme/plugins.lua +++ b/lua/cosmic/core/theme/plugins.lua @@ -3,6 +3,7 @@ local M = {} M.supported_themes = { 'catppuccin', 'dracula', + 'enfocado', 'gruvbox', 'nightfox', 'nord', @@ -92,6 +93,15 @@ function M.init(use, config) end, disable = config.theme ~= 'dracula', }) + + use({ + 'wuelnerdotexe/vim-enfocado', + as = 'enfocado', + config = function() + vim.cmd('color enfocado') + end, + disable = config.theme ~= 'enfocado', + }) end return M diff --git a/lua/cosmic/utils.lua b/lua/cosmic/utils.lua index 5e48b71..2566367 100644 --- a/lua/cosmic/utils.lua +++ b/lua/cosmic/utils.lua @@ -68,9 +68,6 @@ end local function clear_cache() if 0 == vim.fn.delete(vim.fn.stdpath('config') .. '/lua/cosmic/compiled.lua') then vim.cmd(':LuaCacheClear') - vim.notify('Cache cleared!', vim.log.levels.INFO, { - title = 'CosmicNvim', - }) end end diff --git a/readme.md b/readme.md index 3f187bc..a6f21d2 100644 --- a/readme.md +++ b/readme.md @@ -76,6 +76,7 @@ CosmicNvim comes with first-class support for the following themes: - [Catppuccino](https://github.com/Pocco81/Catppuccino.nvim) - [Dracula](https://github.com/Mofiqul/dracula.nvim) +- [Enfocado](https://github.com/wuelnerdotexe/vim-enfocado) - [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim) - [Nightfox](https://github.com/EdenEast/nightfox.nvim) - [Nord](https://github.com/shaunsingh/nord.nvim)