|
1 |
| ----@diagnostic disable: undefined-global |
2 |
| - |
| 1 | +-- [nfnl] Compiled from fnl/colorschemes/onedarkpro.fnl by https://github.com/Olical/nfnl, do not edit. |
| 2 | +local my = _G.my |
3 | 3 | local onedarkpro = require("onedarkpro")
|
4 | 4 | local odp_utils = require("onedarkpro.utils")
|
5 |
| - |
6 |
| -onedarkpro.setup({ |
7 |
| - colors = { |
8 |
| - bg = my.color.my.dark, |
9 |
| - fg = my.color.my.light, |
10 |
| - red = my.color.my.red, |
11 |
| - orange = my.color.my.orange, |
12 |
| - yellow = my.color.my.yellow, |
13 |
| - green = my.color.my.green, |
14 |
| - cyan = my.color.my.aqua, |
15 |
| - blue = my.color.my.blue, |
16 |
| - purple = my.color.my.purple, |
17 |
| - white = my.color.my.light, |
18 |
| - black = my.color.my.dark, |
19 |
| - gray = odp_utils.lighten(my.color.my.dark, 0.50), |
20 |
| - highlight = my.color.my.yellow, |
21 |
| - cursorline = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.dark, 0.97), |
22 |
| - comment = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.dark, 0.80), |
23 |
| - selection = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.dark, 0.90), |
24 |
| - color_column = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.dark, 0.98), |
25 |
| - indentline = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.dark, 0.93), |
26 |
| - menu = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.dark, 0.95), |
27 |
| - menu_scroll = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.dark, 0.90), |
28 |
| - menu_scroll_thumb = odp_utils[vim.opt.background:get() == "dark" and "lighten" or "darken"](my.color.my.blue, 0.80), |
29 |
| - }, |
30 |
| - -- hlgroups = { |
31 |
| - -- TabLineFill = { bg = odp_utils.lighten(my.color.my.cyan, 0.50), fg = my.color.my.dark }, |
32 |
| - -- TabLine = { bg = odp_utils.lighten(my.color.my.cyan, 0.50), fg = my.color.my.dark }, |
33 |
| - -- TabLineSel = { bg = odp_utils.lighten(my.color.my.cyan, 0.50), fg = my.color.my.dark }, |
34 |
| - -- }, |
35 |
| - styles = { |
36 |
| - strings = "NONE", -- Style that is applied to strings |
37 |
| - comments = "italic", -- Style that is applied to comments |
38 |
| - keywords = "bold", -- Style that is applied to keywords |
39 |
| - functions = "italic,bold", -- Style that is applied to functions |
40 |
| - variables = "italic", -- Style that is applied to variables |
41 |
| - }, |
42 |
| - options = { |
43 |
| - bold = true, -- Use the themes opinionated bold styles? |
44 |
| - italic = true, -- Use the themes opinionated italic styles? |
45 |
| - underline = true, -- Use the themes opinionated underline styles? |
46 |
| - undercurl = true, -- Use the themes opinionated undercurl styles? |
47 |
| - cursorline = true, |
48 |
| - transparency = false, -- Use a transparent background? |
49 |
| - terminal_colors = true, |
50 |
| - window_unfocused_color = true, |
51 |
| - }, |
52 |
| -}) |
| 5 | +return onedarkpro.setup({colors = {bg = my.color.my.dark, black = my.color.my.dark, blue = my.color.my.blue, color_column = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.dark, 0.98), comment = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.dark, 0.8), cursorline = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.dark, 0.97), cyan = my.color.my.aqua, fg = my.color.my.light, gray = odp_utils.lighten(my.color.my.dark, 0.5), green = my.color.my.green, highlight = my.color.my.yellow, indentline = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.dark, 0.93), menu = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.dark, 0.95), menu_scroll = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.dark, 0.9), menu_scroll_thumb = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.blue, 0.8), orange = my.color.my.orange, purple = my.color.my.purple, red = my.color.my.red, selection = odp_utils[((((vim.opt.background):get() == "dark") and "lighten") or "darken")](my.color.my.dark, 0.9), white = my.color.my.light, yellow = my.color.my.yellow}, options = {bold = true, cursorline = true, italic = true, terminal_colors = true, undercurl = true, underline = true, window_unfocused_color = true, transparency = false}, styles = {comments = "italic", functions = "italic,bold", keywords = "bold", strings = "NONE", variables = "italic"}}) |
0 commit comments