summaryrefslogtreecommitdiff
path: root/dot_config/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim')
-rw-r--r--dot_config/nvim/colors/starlight.fnl64
-rw-r--r--dot_config/nvim/colors/starlight.lua74
2 files changed, 74 insertions, 64 deletions
diff --git a/dot_config/nvim/colors/starlight.fnl b/dot_config/nvim/colors/starlight.fnl
new file mode 100644
index 0000000..c17a084
--- /dev/null
+++ b/dot_config/nvim/colors/starlight.fnl
@@ -0,0 +1,64 @@
+(local {: mini_palette : setup} (require :mini.base16))
+
+(local starlight {:black :#242424
+ :brblack :#616161
+
+ :red :#F62B5A
+ :brred :#FF4D51
+
+ :green :#47B413
+ :brgreen :#35D450
+
+ :yellow :#E3C401
+ :bryellow :#E9E836
+
+ :blue :#24ACD4
+ :brblue :#5DC5F8
+
+ :magenta :#F2AFFD
+ :brmagenta :#FEABF2
+
+ :cyan :#13C299
+ :brcyan :#24DFC4
+
+ :white :#E6E6E6
+ :brwhite :#FFFFFF})
+(set starlight.background starlight.black)
+(set starlight.foreground starlight.brwhite)
+
+; we have 4 points (black -> brblack -> white -> brwhite)
+; we need 8 (00 -> 07)
+; we will use mini_palette to help us generate those
+; we also specify the chrome of starlight.yellow for potential reuse
+(local b16p (mini_palette starlight.background
+ starlight.foreground
+ 87))
+
+(local palette {; these are selected manually for easier future control
+ ; all of the bg/fg are generated by mini.base16
+ :base00 b16p.base00 ; default bg
+ :base01 b16p.base01 ; lighter bg
+ :base02 b16p.base02 ; selection bg
+ :base03 b16p.base03 ; comments, invisibles, line hi
+ :base04 b16p.base04 ; dark fg
+ :base05 b16p.base05 ; default fg, caret, delim, oper
+ :base06 b16p.base06 ; light fg, rare
+ :base07 b16p.base07 ; light bg, rare
+
+ ; all of the actual highlight colors are hand-picked
+ ; we have red, green, yellow, blue, magenta, cyan to work with
+ ; 6 options and 8 slots to fill
+ :base08 starlight.yellow ; variables, xml tags, markup links & lists, diff-
+ :base09 starlight.brcyan ; ints, bools, consts, xml attrs, markup link urls
+ :base0A starlight.cyan ; classes, bold, search bg
+ :base0B starlight.green ; strings, inherits, markup code, diff+
+ :base0C starlight.brred ; support, regexp, escapes, quotes
+ :base0D starlight.blue ; functions, methods, attributes, headings
+ :base0E starlight.magenta ; keywords, storage, selector, markup italic, diff~
+ :base0F starlight.white}) ; deprecated, open/close
+
+(setup {:palette palette})
+
+; extra highlight groups
+
+(set vim.g.colors_name :starlight)
diff --git a/dot_config/nvim/colors/starlight.lua b/dot_config/nvim/colors/starlight.lua
index 89d0268..cc66b0f 100644
--- a/dot_config/nvim/colors/starlight.lua
+++ b/dot_config/nvim/colors/starlight.lua
@@ -1,66 +1,12 @@
-local b16 = require 'mini.base16'
-
-local starlight = {
- black = '#242424',
- brblack = '#616161',
-
- red = '#F62B5A',
- brred = '#FF4D51',
-
- green = '#47B413',
- brgreen = '#35D450',
-
- yellow = '#E3C401',
- bryellow = '#E9E836',
-
- blue = '#24ACD4',
- brblue = '#5DC5F8',
-
- magenta = '#F2AFFD',
- brmagenta = '#FEABF2',
-
- cyan = '#13C299',
- brcyan = '#24DFC4',
-
- white = '#E6E6E6',
- brwhite = '#FFFFFF',
-}
+-- [nfnl] Compiled from colors/starlight.fnl by https://github.com/Olical/nfnl, do not edit.
+local _local_1_ = require("mini.base16")
+local mini_palette = _local_1_["mini_palette"]
+local setup = _local_1_["setup"]
+local starlight = {black = "#242424", brblack = "#616161", red = "#F62B5A", brred = "#FF4D51", green = "#47B413", brgreen = "#35D450", yellow = "#E3C401", bryellow = "#E9E836", blue = "#24ACD4", brblue = "#5DC5F8", magenta = "#F2AFFD", brmagenta = "#FEABF2", cyan = "#13C299", brcyan = "#24DFC4", white = "#E6E6E6", brwhite = "#FFFFFF"}
starlight.background = starlight.black
starlight.foreground = starlight.brwhite
-
--- we have 4 points (black -> brblack -> white -> brwhite
--- we need 8 (00 -> 07)
--- we will use mini_palette to help us generate those
--- we also specify the chroma of starlight.yellow for potential reuse
-local b16_palette = b16.mini_palette(starlight.background, starlight.foreground, 87)
-
-local palette = {
- -- all of the bg/fg are generated by mini.base16
- base00 = b16_palette.base00, -- default bg
- base01 = b16_palette.base01, -- lighter bg
- base02 = b16_palette.base02, -- selection bg
- base03 = b16_palette.base03, -- comments, invisibles, line hi
- base04 = b16_palette.base04, -- dark fg
- base05 = b16_palette.base05, -- default fg, caret, delim, oper
- base06 = b16_palette.base06, -- light fg, rare
- base07 = b16_palette.base07, -- light bg, rare
- -- all of the actual highlight colors are hand picked
- -- we have red, green, yellow, blue, magenta, cyan to work with (6), and 8 slots to fill
- base08 = starlight.yellow, -- variables, xml tags, markup links & lists, diff-
- base09 = starlight.brcyan, -- ints, bools, consts, xml attrs, markup link urls
- base0A = starlight.cyan, -- classes, bold, search bg
- base0B = starlight.green, -- strings, inherits, markup code, diff+
- base0C = starlight.brred, -- support, regexp, escapes, quotes
- base0D = starlight.blue, -- functions, methods, attributes, headings
- base0E = starlight.magenta, -- keywords, storage, selector, markup italic, diff~
- base0F = starlight.white, -- deprecated, open/close
-}
-
-b16.setup {
- -- palette = b16_palette
- palette = palette,
-}
-
--- additional highlight groups
-
-vim.g.colors_name = 'starlight'
+local b16p = mini_palette(starlight.background, starlight.foreground, 87)
+local palette = {base00 = b16p.base00, base01 = b16p.base01, base02 = b16p.base02, base03 = b16p.base03, base04 = b16p.base04, base05 = b16p.base05, base06 = b16p.base06, base07 = b16p.base07, base08 = starlight.yellow, base09 = starlight.brcyan, base0A = starlight.cyan, base0B = starlight.green, base0C = starlight.brred, base0D = starlight.blue, base0E = starlight.magenta, base0F = starlight.white}
+setup({palette = palette})
+vim.g.colors_name = "starlight"
+return nil