@@ -13,7 +13,7 @@ describe("Override config", function()
1313 pink = " #61afef" ,
1414 lmao = " #dedeff" ,
1515 },
16- themes = function (c )
16+ highlights = function (c )
1717 return {
1818 Normal = { fg = c .lmao , italic = true },
1919 }
@@ -28,7 +28,7 @@ describe("Override config", function()
2828 it (" should change the default config" , function ()
2929 assert .is_false (config .transparent )
3030 assert .are .same (expected .colors , config .colors )
31- assert .are .same (expected .themes (colors ), config .themes (colors ))
31+ assert .are .same (expected .highlights (colors ), config .highlights (colors ))
3232 end )
3333
3434 it (" should change default colors" , function ()
@@ -37,7 +37,7 @@ describe("Override config", function()
3737 assert .equal (expected .colors .lmao , colors .lmao )
3838 end )
3939
40- it (" should change default themes " , function ()
40+ it (" should change default highlights " , function ()
4141 local hl = vim .api .nvim_get_hl (0 , { name = " Normal" })
4242
4343 assert .equal (expected .colors .lmao , (" #%06x" ):format (hl .fg ))
@@ -58,7 +58,7 @@ describe("Override wrong config", function()
5858 colors = {
5959 aqua = true ,
6060 },
61- themes = function ()
61+ highlights = function ()
6262 return {
6363 Normal = { fg = " lmao" , italic = true },
6464 }
@@ -78,7 +78,7 @@ describe("Override wrong config", function()
7878 end )
7979
8080 it (" should fallback to default highlights" , function ()
81- local default = require " one_monokai.themes .groups"
81+ local default = require " one_monokai.highlights .groups"
8282 local hl = vim .api .nvim_get_hl (0 , { name = " Normal" })
8383
8484 assert .equal (default .Normal .fg , (" #%06x" ):format (hl .fg ))
0 commit comments