Last active
November 22, 2022 19:29
-
-
Save n1ghtmare/8829745e6788cc158b73aa327bb26bb9 to your computer and use it in GitHub Desktop.
Revisions
-
n1ghtmare revised this gist
Nov 22, 2022 . 3 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes.File renamed without changes. -
n1ghtmare created this gist
Nov 22, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ local Color, colors, Group, groups, styles = require('colorbuddy').setup() local M = {} function M.setup(opts) opts = opts or {} if opts.primary then Color.new('primary', opts.primary) else Color.new('primary', '#ff0088') end if opts.secondary then Color.new('secondary', opts.secondary) else Color.new('secondary', '#56c5cc') end -- I want to add another option for background and move the line below if opts.background then Colors.new('background', opts.background) else Colors.new('background', '#121212') end Color.new('grey', '#a7a7a7') -- Generic Highlighting Group.new('Normal', colors.background, colors.secondary) -- from colors.black to -> colors.background end return M This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ local Color, colors, Group, groups, styles = require('colorbuddy').setup() local M = {} function M.setup(opts) opts = opts or {} if opts.primary then Color.new('primary', opts.primary) else Color.new('primary', '#ff0088') end if opts.secondary then Color.new('secondary', opts.secondary) else Color.new('secondary', '#56c5cc') end Color.new('black', '#121212') Color.new('grey', '#a7a7a7') -- Generic Highlighting Group.new('Normal', colors.black, colors.primary) -- Also works with --Group.new('Normal', colors.black, colors.seconary) end return M This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ requrie("my-theme").setup({ primary="#123456", seconary="#777777"}) -- and with the new changes requrie("my-theme").setup({ primary="#123456", seconary="#777777", background="#000000"})