|
1 | 1 | (local my _G.my)
|
2 |
| -(set vim.opt.termguicolors true) |
3 | 2 |
|
4 | 3 | (local M {})
|
5 | 4 |
|
|
14 | 13 | (my.color.fn.background_blend (vimode-color) 50))
|
15 | 14 |
|
16 | 15 | {:background {:bg (tertiary-vimode-color)
|
17 |
| - :fg my.color.my.theme.bold-retro.primary |
| 16 | + :fg (. (my.color.theme my.color.my.current-theme) :primary) |
18 | 17 | :force true}
|
19 | 18 | :buffer {:bg (tertiary-vimode-color) :fg my.color.my.dark :force true}
|
20 | 19 | :buffer_selected {:bg (vimode-color)
|
21 | 20 | :bold true
|
22 |
| - :fg my.color.my.theme.bold-retro.primary |
| 21 | + :fg (. (my.color.theme my.color.my.current-theme) :primary) |
23 | 22 | :force true}
|
24 | 23 | :buffer_visible {:bg (secondary-vimode-color)
|
25 | 24 | :fg my.color.my.purple
|
|
28 | 27 | :fg (. my.color.my (vim.opt.background:get))}
|
29 | 28 | :close_button_selected {:bg (vimode-color)
|
30 | 29 | :bold true
|
31 |
| - :fg my.color.my.theme.bold-retro.primary} |
| 30 | + :fg (. (my.color.theme my.color.my.current-theme) :primary)} |
32 | 31 | :close_button_visible {:bg (secondary-vimode-color)
|
33 |
| - :fg my.color.my.theme.bold-retro.primary} |
34 |
| - :diagnostic {:bg (tertiary-vimode-color) :fg my.color.my.theme.bold-retro.attention} |
| 32 | + :fg (. (my.color.theme my.color.my.current-theme) :primary)} |
| 33 | + :diagnostic {:bg (tertiary-vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :attention)} |
35 | 34 | :diagnostic_selected {:bg (vimode-color)
|
36 | 35 | :bold true
|
37 |
| - :fg my.color.my.theme.bold-retro.attention |
| 36 | + :fg (. (my.color.theme my.color.my.current-theme) :attention) |
38 | 37 | :italic true}
|
39 | 38 | :diagnostic_visible {:bg (secondary-vimode-color)
|
40 | 39 | :bold true
|
41 |
| - :fg my.color.my.theme.bold-retro.attention} |
| 40 | + :fg (. (my.color.theme my.color.my.current-theme) :attention)} |
42 | 41 | :error {:bg (tertiary-vimode-color)
|
43 |
| - :fg (my.color.util.darken my.color.my.theme.bold-retro.attention 66)} |
44 |
| - :error_diagnostic {:bg (tertiary-vimode-color) :fg my.color.my.theme.bold-retro.attention} |
| 42 | + :fg (my.color.util.darken (. (my.color.theme my.color.my.current-theme) :attention) 66)} |
| 43 | + :error_diagnostic {:bg (tertiary-vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :attention)} |
45 | 44 | :error_diagnostic_selected {:bg (vimode-color)
|
46 |
| - :fg (my.color.util.darken my.color.my.theme.bold-retro.attention 33)} |
| 45 | + :fg (my.color.util.darken (. (my.color.theme my.color.my.current-theme) :attention) 33)} |
47 | 46 | :error_diagnostic_visible {:bg (secondary-vimode-color)
|
48 |
| - :fg (my.color.util.darken my.color.my.theme.bold-retro.attention 21)} |
| 47 | + :fg (my.color.util.darken (. (my.color.theme my.color.my.current-theme) :attention) 21)} |
49 | 48 | :error_selected {:bg (vimode-color)
|
50 |
| - :fg (my.color.util.darken my.color.my.theme.bold-retro.attention 66)} |
| 49 | + :fg (my.color.util.darken (. (my.color.theme my.color.my.current-theme) :attention) 66)} |
51 | 50 | :error_visible {:bg (secondary-vimode-color)
|
52 |
| - :fg (my.color.util.darken my.color.my.theme.bold-retro.attention 66)} |
53 |
| - :fill {:bg my.color.my.theme.bold-retro.primary} |
| 51 | + :fg (my.color.util.darken (. (my.color.theme my.color.my.current-theme) :attention) 66)} |
| 52 | + :fill {:bg (. (my.color.theme my.color.my.current-theme) :primary)} |
54 | 53 | :hint {:bg (tertiary-vimode-color)
|
55 | 54 | :fg (my.color.util.darken my.color.my.yellow 66)}
|
56 | 55 | :hint_diagnostic {:bg (tertiary-vimode-color) :fg my.color.my.yellow}
|
|
73 | 72 | :fg (my.color.util.darken my.color.my.blue 66)}
|
74 | 73 | :info_visible {:bg (secondary-vimode-color)
|
75 | 74 | :fg (my.color.util.darken my.color.my.blue 66)}
|
76 |
| - :modified {:bg (tertiary-vimode-color) :fg my.color.my.theme.bold-retro.attention} |
77 |
| - :modified_selected {:bg (vimode-color) :fg my.color.my.theme.bold-retro.attention} |
78 |
| - :modified_visible {:bg (secondary-vimode-color) :fg my.color.my.theme.bold-retro.attention} |
| 75 | + :modified {:bg (tertiary-vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :attention)} |
| 76 | + :modified_selected {:bg (vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :attention)} |
| 77 | + :modified_visible {:bg (secondary-vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :attention)} |
79 | 78 | :pick_selected {:bg (. my.color.my (vim.opt.background:get))
|
80 | 79 | :fg (vimode-color)}
|
81 |
| - :separator {:bg (tertiary-vimode-color) :fg my.color.my.theme.bold-retro.primary} |
82 |
| - :separator_selected {:bg (vimode-color) :fg my.color.my.theme.bold-retro.primary} |
83 |
| - :separator_visible {:bg (secondary-vimode-color) :fg my.color.my.theme.bold-retro.primary} |
| 80 | + :separator {:bg (tertiary-vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :primary)} |
| 81 | + :separator_selected {:bg (vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :primary)} |
| 82 | + :separator_visible {:bg (secondary-vimode-color) :fg (. (my.color.theme my.color.my.current-theme) :primary)} |
84 | 83 | :tab {:bg (tertiary-vimode-color)}
|
85 | 84 | :tab_close {:bg (vimode-color) :bold true :fg my.color.my.dark}
|
86 | 85 | :tab_selected {:bg (vimode-color) :bold true :fg my.color.my.light}
|
|
98 | 97 | :warning_visible {:bg (secondary-vimode-color)
|
99 | 98 | :fg (my.color.util.darken my.color.my.orange 66)}})
|
100 | 99 |
|
101 |
| - (local opts {:highlights (highlights) |
102 |
| - :options {:always_show_bufferline true |
103 |
| - :buffer_close_icon "" |
104 |
| - :close_command "bp | silent! bd! %d" |
105 |
| - :close_icon "" |
106 |
| - :custom_areas {} |
107 |
| - :custom_filter (fn [buf-number] |
108 |
| - (when (not (not (: (vim.api.nvim_buf_get_name buf-number) |
109 |
| - :find |
110 |
| - (vim.fn.getcwd) 0 |
111 |
| - true))) |
112 |
| - true)) |
113 |
| - :diagnostics :nvim_lsp |
114 |
| - :diagnostics_indicator (fn [count |
115 |
| - level |
116 |
| - diagnostics-dict |
117 |
| - context] |
118 |
| - (var s " ") |
119 |
| - (each [e n (pairs diagnostics-dict)] |
120 |
| - (local sym |
121 |
| - (or (and (= e :error) |
122 |
| - " ") |
123 |
| - (or (and (= e |
124 |
| - :warning) |
125 |
| - " ") |
126 |
| - " "))) |
127 |
| - (set s (.. s n sym))) |
128 |
| - s) |
129 |
| - :enforce_regular_tabs false |
130 |
| - :indicator {:icon "▎" :style :icon} |
131 |
| - :left_mouse_command "buffer %d" |
132 |
| - :left_trunc_marker "" |
133 |
| - :max_name_length 21 |
134 |
| - :max_prefix_length 15 |
135 |
| - :middle_mouse_command "sbuffer %d" |
136 |
| - :modified_icon "●" |
137 |
| - :name_formatter (fn [buf] |
138 |
| - (vim.fn.fnamemodify buf.name ":t")) |
139 |
| - :numbers :none |
140 |
| - :persist_buffer_sort true |
141 |
| - :right_mouse_command "sbuffer %d" |
142 |
| - :right_trunc_marker "" |
143 |
| - :separator_style :slope |
144 |
| - :show_buffer_close_icons true |
145 |
| - :show_buffer_icons true |
146 |
| - :show_close_icon true |
147 |
| - :show_tab_indicators true |
148 |
| - :sort_by (fn [buffer-a buffer-b] |
149 |
| - (local mod-a |
150 |
| - (or (. (or (. (or (vim.loop.fs_stat buffer-a.path) |
| 100 | + (local opts (fn [] {:highlights (highlights) |
| 101 | + :options {:always_show_bufferline true |
| 102 | + :buffer_close_icon "" |
| 103 | + :close_command "bp | silent! bd! %d" |
| 104 | + :close_icon "" |
| 105 | + :custom_areas {} |
| 106 | + :custom_filter (fn [buf-number] |
| 107 | + (when (not (not (: (vim.api.nvim_buf_get_name buf-number) |
| 108 | + :find |
| 109 | + (vim.fn.getcwd) 0 |
| 110 | + true))) |
| 111 | + true)) |
| 112 | + :diagnostics :nvim_lsp |
| 113 | + :diagnostics_indicator (fn [count |
| 114 | + level |
| 115 | + diagnostics-dict |
| 116 | + context] |
| 117 | + (var s " ") |
| 118 | + (each [e n (pairs diagnostics-dict)] |
| 119 | + (local sym |
| 120 | + (or (and (= e :error) |
| 121 | + " ") |
| 122 | + (or (and (= e |
| 123 | + :warning) |
| 124 | + " ") |
| 125 | + " "))) |
| 126 | + (set s (.. s n sym))) |
| 127 | + s) |
| 128 | + :enforce_regular_tabs false |
| 129 | + :indicator {:icon "▎" :style :icon} |
| 130 | + :left_mouse_command "buffer %d" |
| 131 | + :left_trunc_marker "" |
| 132 | + :max_name_length 21 |
| 133 | + :max_prefix_length 15 |
| 134 | + :middle_mouse_command "sbuffer %d" |
| 135 | + :modified_icon "●" |
| 136 | + :name_formatter (fn [buf] |
| 137 | + (vim.fn.fnamemodify buf.name ":t")) |
| 138 | + :numbers :none |
| 139 | + :persist_buffer_sort true |
| 140 | + :right_mouse_command "sbuffer %d" |
| 141 | + :right_trunc_marker "" |
| 142 | + :separator_style :slope |
| 143 | + :show_buffer_close_icons true |
| 144 | + :show_buffer_icons true |
| 145 | + :show_close_icon true |
| 146 | + :show_tab_indicators true |
| 147 | + :sort_by (fn [buffer-a buffer-b] |
| 148 | + (local mod-a |
| 149 | + (or (. (or (. (or (vim.loop.fs_stat buffer-a.path) |
| 150 | + {}) |
| 151 | + :atime) |
151 | 152 | {})
|
152 |
| - :atime) |
153 |
| - {}) |
154 |
| - :sec) |
155 |
| - 0)) |
156 |
| - (local mod-b |
157 |
| - (or (. (or (. (or (vim.loop.fs_stat buffer-b.path) |
| 153 | + :sec) |
| 154 | + 0)) |
| 155 | + (local mod-b |
| 156 | + (or (. (or (. (or (vim.loop.fs_stat buffer-b.path) |
| 157 | + {}) |
| 158 | + :atime) |
158 | 159 | {})
|
159 |
| - :atime) |
160 |
| - {}) |
161 |
| - :sec) |
162 |
| - 0)) |
163 |
| - (> mod-a mod-b)) |
164 |
| - :tab_size 7}}) |
165 |
| - ((. (require :bufferline) :setup) opts)) |
| 160 | + :sec) |
| 161 | + 0)) |
| 162 | + (> mod-a mod-b)) |
| 163 | + :tab_size 7}})) |
| 164 | + ((. (require :bufferline) :setup) (opts))) |
166 | 165 |
|
167 | 166 | M
|
168 | 167 |
|
0 commit comments