summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-17 21:05:38 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-17 21:05:38 +0200
commita0cca5b1b1c8f9eba2b326905be4d8ef47fde95b (patch)
tree1d4c0eee5600d274aeb7478663f5cb5cd4f79dcd /.config/nvim
parent356ca1446b184d3242943c963f3bc2369ef789dd (diff)
nvim: Configure some colors
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index ffe7b3d..205cb83 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -135,6 +135,27 @@ vim.api.nvim_create_autocmd('TextYankPost', {
end,
})
+vim.api.nvim_create_autocmd('VimEnter', {
+ desc = 'Remove the Vim background color',
+ group = vim.api.nvim_create_augroup('mango-transparent-bg', { clear = true }),
+ callback = function()
+ vim.cmd [[
+ highlight CursorColumn guibg=#1D2635
+ highlight CursorLine guibg=#1D2635
+ highlight EndOfBuffer guibg=NONE
+ highlight Normal guibg=NONE
+ highlight NormalNC guibg=NONE
+ highlight StatusLine guibg=#19212E
+ highlight TabLineFill guibg=#19212E
+ highlight TabLine guibg=#131A25
+ highlight TelescopeNormal guibg=NONE
+ highlight TelescopeBorder guibg=NONE
+ highlight TelescopePromptBorder guibg=NONE
+ highlight TelescopePromptTitle guibg=NONE
+ ]]
+ end,
+})
+
-- Weird way to make buffer auto-reverting work?
vim.cmd [[
if !exists('g:CheckUpdateStarted')