Something went wrong. Try again.
Vim/Neovim configurations just for me
neovim
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637local M = {}
function M.setup() vim.o.guifont = "Maple Mono NF CN:h10" if vim.g.neovide then vim.g.neovide_hide_mouse_when_typing = true vim.g.neovide_cursor_vfx_mode = "" vim.g.neovide_floating_shadow = false
local function set_titlebar_color() local bg = nil if vim.o.showtabline == 1 and vim.api.nvim_list_tabpages()[2] or vim.o.showtabline == 2 then bg = vim.api.nvim_get_hl(0, { name = "TabLineFill", link = false }).bg end bg = bg or vim.api.nvim_get_hl(0, { name = "Normal", link = false }).bg if bg then vim.g.neovide_title_background_color = ("%x"):format(bg) end end if vim.v.vim_did_enter then set_titlebar_color() end vim.api.nvim_create_autocmd({ "ColorScheme", "TabClosed", "TabNew" }, { callback = set_titlebar_color, }) vim.api.nvim_create_autocmd("OptionSet", { pattern = "showtabline", callback = set_titlebar_color, }) endend
return M