typicode / bg.nvim Goto Github PK
View Code? Open in Web Editor NEWAutomatically sync your terminal background with your colorscheme ๐
License: MIT License
Automatically sync your terminal background with your colorscheme ๐
License: MIT License
On exit, background color is not reset for konsole
I'm getting this error with the latest version:
Error detected while processing /home/aguth/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/aguth/.config/nvim/lua/colorschemes/gruvbox-nvim.lua:42: /home/aguth/.config/nvim/init.lua..nvim_exec() called at /home/aguth/.config/nvim/init.lua:0..ColorScheme Autocommands for "*": Vim(append):Error
executing lua callback: /home/aguth/.local/share/nvim/lazy/bg.nvim/plugin/bg.lua:11: bad argument #2 to 'format' (number expected, got nil)
stack traceback:
[C]: in function 'format'
/home/aguth/.local/share/nvim/lazy/bg.nvim/plugin/bg.lua:11: in function </home/aguth/.local/share/nvim/lazy/bg.nvim/plugin/bg.lua:9>
[C]: in function 'cmd'
/home/aguth/.config/nvim/lua/colorschemes/gruvbox-nvim.lua:42: in main chunk
[C]: in function 'require'
/home/aguth/.config/nvim/init.lua:35: in main chunk
stack traceback:
[C]: in function 'cmd'
/home/aguth/.config/nvim/lua/colorschemes/gruvbox-nvim.lua:42: in main chunk
[C]: in function 'require'
/home/aguth/.config/nvim/init.lua:35: in main chunk
Press ENTER or type command to continue
vim.api.get_hl_by_name("Normal", true)
returns { foreground = 15457202 }
for my colorscheme (gruvbox.nvim), so bg
is nil
here.
gruvbox has a "transparent mode", and when you turn it on, it doesn't set a background. it works fine without transparent mode. I'm guessing when the current colorscheme has no background, bg.nvim should probably also just not call update
and reset
๐ค
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.