File tree 4 files changed +32
-0
lines changed
4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 58
58
italic_comments = true ,
59
59
hide_fillchars = true ,
60
60
borderless_telescope = true ,
61
+ terminal_colors = true ,
61
62
})
62
63
vim .cmd (" colorscheme cyberdream" ) -- set the colorscheme
63
64
end ,
Original file line number Diff line number Diff line change 47
47
italic_comments = true,
48
48
hide_fillchars = true,
49
49
borderless_telescope = true,
50
+ terminal_colors = true,
50
51
})
51
52
vim.cmd("colorscheme cyberdream") -- set the colorscheme
52
53
end,
@@ -90,6 +91,9 @@ Below is an example of all the available configuration options:
90
91
91
92
-- Modern borderless telescope theme
92
93
borderless_telescope = true, -- Default: true
94
+
95
+ -- Set terminal colors used in `:terminal `
96
+ terminal_colors = true, -- Default: true
93
97
94
98
theme = { -- Default: nil
95
99
highlights = {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ local default_options = {
6
6
italic_comments = false ,
7
7
hide_fillchars = false ,
8
8
borderless_telescope = true ,
9
+ terminal_colos = true ,
9
10
10
11
theme = {
11
12
colors = {},
Original file line number Diff line number Diff line change @@ -262,6 +262,32 @@ function M.setup()
262
262
theme .highlights .TelescopeResultsTitle = { fg = t .bgAlt , bg = t .bgAlt }
263
263
end
264
264
265
+ if opts .terminal_colors then
266
+ vim .g .terminal_color_0 = t .bg
267
+ vim .g .terminal_color_8 = t .bgAlt
268
+
269
+ vim .g .terminal_color_7 = t .fg
270
+ vim .g .terminal_color_15 = t .grey
271
+
272
+ vim .g .terminal_color_1 = t .red
273
+ vim .g .terminal_color_9 = t .red
274
+
275
+ vim .g .terminal_color_2 = t .green
276
+ vim .g .terminal_color_10 = t .green
277
+
278
+ vim .g .terminal_color_3 = t .yellow
279
+ vim .g .terminal_color_11 = t .yellow
280
+
281
+ vim .g .terminal_color_4 = t .blue
282
+ vim .g .terminal_color_12 = t .blue
283
+
284
+ vim .g .terminal_color_5 = t .purple
285
+ vim .g .terminal_color_13 = t .purple
286
+
287
+ vim .g .terminal_color_6 = t .cyan
288
+ vim .g .terminal_color_14 = t .cyan
289
+ end
290
+
265
291
-- Override highlights with user defined highlights
266
292
theme .highlights = vim .tbl_deep_extend (" force" , theme .highlights , opts .theme .highlights or {})
267
293
You can’t perform that action at this time.
0 commit comments