diff options
| author | philw <dscr@duck.com> | 2025-03-28 11:03:38 +0100 |
|---|---|---|
| committer | philw <dscr@duck.com> | 2025-03-28 11:03:38 +0100 |
| commit | fb4224f3bdf46bff3534b43def365f2d6c4bf27a (patch) | |
| tree | 56c5ee59abd89d549321b78ce4cb13ada8c54d73 /init.lua | |
| parent | 25e664d9f2eaa81720e48ad6b90c1f9804032dc9 (diff) | |
| download | neovim-fb4224f3bdf46bff3534b43def365f2d6c4bf27a.tar.gz neovim-fb4224f3bdf46bff3534b43def365f2d6c4bf27a.zip | |
Enable transparent background for presentations
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -118,6 +118,7 @@ local function setup_autopairs() | |||
| 118 | ) | 118 | ) |
| 119 | end | 119 | end |
| 120 | end | 120 | end |
| 121 | |||
| 121 | function set_highlights() | 122 | function set_highlights() |
| 122 | local highlights = { | 123 | local highlights = { |
| 123 | {"GitGutterAdd", {bg = "none"}}, | 124 | {"GitGutterAdd", {bg = "none"}}, |
| @@ -127,7 +128,6 @@ function set_highlights() | |||
| 127 | {"GitGutterChangeDelete", {bg = "none"}}, | 128 | {"GitGutterChangeDelete", {bg = "none"}}, |
| 128 | {"NonText", {fg = "none"}}, | 129 | {"NonText", {fg = "none"}}, |
| 129 | {"EndOfBuffer", {fg = "none", bg = "none"}}, | 130 | {"EndOfBuffer", {fg = "none", bg = "none"}}, |
| 130 | -- {"Normal", {bg = "none"}}, | ||
| 131 | {"SignColumn", {bg = "none"}}, | 131 | {"SignColumn", {bg = "none"}}, |
| 132 | {"StatusLine", {bg = "none", fg = "none"}}, | 132 | {"StatusLine", {bg = "none", fg = "none"}}, |
| 133 | {"StatusLineNc", {bg = "none", fg = "none"}}, | 133 | {"StatusLineNc", {bg = "none", fg = "none"}}, |
| @@ -159,11 +159,11 @@ for _, hl in ipairs(highlights) do | |||
| 159 | 159 | ||
| 160 | end | 160 | end |
| 161 | 161 | ||
| 162 | |||
| 163 | vim.o.background = "dark" | 162 | vim.o.background = "dark" |
| 164 | function color_mode() | 163 | function color_mode() |
| 165 | if vim.o.background == "dark" then | 164 | if vim.o.background == "dark" then |
| 166 | vim.o.background = "light" | 165 | vim.o.background = "light" |
| 166 | vim.api.nvim_set_hl(0, "Normal", {bg = "none"}) | ||
| 167 | else | 167 | else |
| 168 | vim.o.background = "dark" | 168 | vim.o.background = "dark" |
| 169 | end | 169 | end |
