annotate vendor/vim-packs/srcery-vim/lua/lualine/themes/srcery.lua @ 727:49538e2aad65 default tip

Add a useful editrc
author nanaya <me@nanaya.net>
date Tue, 24 Sep 2024 16:58:15 +0900
parents 78469331407e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
1 -- Port of Srcery's airline theme to lualine
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
2 local colors = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
3 black = vim.api.nvim_eval('g:srcery_black'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
4 red = vim.api.nvim_eval('g:srcery_red'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
5 green = vim.api.nvim_eval('g:srcery_green'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
6 yellow = vim.api.nvim_eval('g:srcery_yellow'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
7 blue = vim.api.nvim_eval('g:srcery_blue'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
8 magenta = vim.api.nvim_eval('g:srcery_magenta'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
9 cyan = vim.api.nvim_eval('g:srcery_cyan'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
10 white = vim.api.nvim_eval('g:srcery_white'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
11 brightblack = vim.api.nvim_eval('g:srcery_bright_black'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
12 brightred = vim.api.nvim_eval('g:srcery_bright_red'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
13 brightgreen = vim.api.nvim_eval('g:srcery_bright_green'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
14 brightyellow = vim.api.nvim_eval('g:srcery_bright_yellow'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
15 brightblue = vim.api.nvim_eval('g:srcery_bright_blue'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
16 brightmagenta = vim.api.nvim_eval('g:srcery_bright_magenta'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
17 brightcyan = vim.api.nvim_eval('g:srcery_bright_cyan'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
18 brightwhite = vim.api.nvim_eval('g:srcery_bright_white'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
19 -- Srcery's xterm 256 colors
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
20 orange = vim.api.nvim_eval('g:srcery_red'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
21 brightorange = vim.api.nvim_eval('g:srcery_red'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
22 hardblack = vim.api.nvim_eval('g:srcery_red'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
23 xgray1 = vim.api.nvim_eval('g:srcery_xgray1'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
24 xgray2 = vim.api.nvim_eval('g:srcery_xgray2'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
25 xgray3 = vim.api.nvim_eval('g:srcery_xgray3'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
26 xgray4 = vim.api.nvim_eval('g:srcery_xgray4'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
27 xgray5 = vim.api.nvim_eval('g:srcery_xgray5'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
28 xgray6 = vim.api.nvim_eval('g:srcery_xgray6'),
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
29 }
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
30
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
31 return {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
32 normal = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
33 a = {bg = colors.xgray4, fg = colors.brightwhite, gui = 'bold'},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
34 b = {bg = colors.xgray3, fg = colors.brightwhite},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
35 c = {bg = colors.xgray1, fg = colors.brightwhite}
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
36 },
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
37 insert = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
38 a = {bg = colors.brightwhite, fg = colors.black, gui = 'bold'},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
39 b = {bg = colors.brightblack, fg = colors.black},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
40 c = {bg = colors.xgray1, fg = colors.brightwhite}
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
41 },
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
42 visual = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
43 a = {bg = colors.cyan, fg = colors.black, gui = 'bold'},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
44 b = {bg = colors.xgray5, fg = colors.brightwhite},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
45 c = {bg = colors.xgray1, fg = colors.brightwhite}
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
46 },
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
47 replace = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
48 a = {bg = colors.brightred, fg = colors.brightwhite, gui = 'bold'},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
49 b = {bg = colors.brightblack, fg = colors.black},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
50 c = {bg = colors.xgray1, fg = colors.brightwhite}
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
51 },
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
52 command = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
53 a = {bg = colors.yellow, fg = colors.black, gui = 'bold'},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
54 b = {bg = colors.xgray3, fg = colors.brightwhite},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
55 c = {bg = colors.xgray1, fg = colors.brightwhite}
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
56 },
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
57 terminal = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
58 a = {bg = colors.green, fg = colors.black, gui = 'bold'},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
59 b = {bg = colors.xgray3, fg = colors.brightwhite},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
60 c = {bg = colors.xgray1, fg = colors.brightwhite}
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
61 },
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
62 inactive = {
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
63 a = {bg = colors.xgray4, fg = colors.xgray6, gui = 'bold'},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
64 b = {bg = colors.xgray3, fg = colors.xgray6},
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
65 c = {bg = colors.xgray2, fg = colors.xgray6}
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
66 }
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents:
diff changeset
67 }