From a0cca5b1b1c8f9eba2b326905be4d8ef47fde95b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 17 Aug 2024 21:05:38 +0200 Subject: nvim: Configure some colors --- .config/nvim/init.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to '.config') 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') -- cgit v1.2.3