diff --git a/colors/candyland.lua b/colors/candyland.lua index 03da887..f93614e 100644 --- a/colors/candyland.lua +++ b/colors/candyland.lua @@ -1,28 +1,10 @@ --- You probably always want to set this in your vim file vim.opt.background = 'dark' vim.g.colors_name = 'candyland' - --- By setting our module to nil, we clear lua's cache, --- which means the require ahead will *always* occur. --- --- This isn't strictly required but it can be a useful trick if you are --- incrementally editing your config a lot and want to be sure your themes --- changes are being picked up without restarting neovim. --- --- Note if you're working in on your theme and have :Lushify'd the buffer, --- your changes will be applied with our without the following line. --- --- The performance impact of this call can be measured in the hundreds of --- *nanoseconds* and such could be considered "production safe". package.loaded['lush_theme.candyland'] = nil --- include our theme file and pass it to lush to apply require('lush')(require('lush_theme.candyland')) local colors = { --- content here will not be touched --- PATCH_OPEN --- Normal = {fg = "#c0caf5", bg = "#251a34"}, NvimSpacing = {link = "Normal"}, NvimTreePopup = {link = "Normal"}, Bold = {bold = true}, @@ -1128,16 +1110,12 @@ packerSuccess = {fg = "#9ece6a"}, ["@text.strike"] = {strikethrough = true}, ["@variable.builtin"] = {fg = "#df71e6", bold = false}, ["@lsp.typemod.variable.defaultLibrary"] = {link = "@variable.builtin"}, --- PATCH_CLOSE --- content here will not be touched } --- colorschemes generally want to do this vim.cmd("highlight clear") vim.cmd("set t_Co=256") vim.cmd("let g:colors_name='candyland'") --- apply highlight groups for group, attrs in pairs(colors) do vim.api.nvim_set_hl(0, group, attrs) end diff --git a/colors/candyland.vim b/colors/candyland.vim index 20e8d23..42c9292 100644 --- a/colors/candyland.vim +++ b/colors/candyland.vim @@ -1,4 +1,3 @@ -" highlight Normal guifg=#c0caf5 guibg=#251a34 guisp=NONE blend=NONE gui=NONE highlight! link NvimSpacing Normal highlight! link NvimTreePopup Normal highlight Bold guifg=NONE guibg=NONE guisp=NONE blend=NONE gui=bold