Comments (7)
@elkowar this is a new one for me I'm not sure what I'm looking at tbh, can you share the configuration you're using. Have you attempted to change anything? what colorscheme are you using and is your terminal truecolor/are you using termguicolors
?
from bufferline.nvim.
https://github.com/elkowar/Desktop-dotfiles/blob/master/files/.config/nvim/fnl/plugins/bufferline.fnl here is my relevant config (it's in fennel, but 🤷🏻 ) i'm using termguicolors and using gruvbox-community/gruvbox
from bufferline.nvim.
By default the diagnostic highlights use LspDiagnosticsDefault{Error|Warning|Information}
highlights but if your colorscheme doesn't support those it falls back to Error
, and WarningMsg
the background is just adapted from the current highlight of the buffer tab.
Sorry @elkowar I really can't follow fennel. It looks like you are in the middle of customising the colors and just need to find the correct one for the diagnostic background
from bufferline.nvim.
You probably want to change the background values for
diagnostic = {
guifg = comment_diagnostic_fg,
guibg = background_color,
},
diagnostic_visible = {
guifg = comment_diagnostic_fg,
guibg = visible_bg,
},
diagnostic_selected = {
guifg = normal_diagnostic_fg,
guibg = normal_bg,
gui = "bold,italic",
},
info = {
guifg = comment_fg,
guisp = info_fg,
guibg = background_color,
},
info_visible = {
guifg = comment_fg,
guibg = visible_bg,
},
info_selected = {
guifg = info_fg,
guibg = normal_bg,
gui = "bold,italic",
guisp = info_fg,
},
info_diagnostic = {
guifg = comment_diagnostic_fg,
guisp = info_diagnostic_fg,
guibg = background_color,
},
info_diagnostic_visible = {
guifg = comment_diagnostic_fg,
guibg = visible_bg,
},
info_diagnostic_selected = {
guifg = info_diagnostic_fg,
guibg = normal_bg,
gui = "bold,italic",
guisp = info_diagnostic_fg,
},
These are pulled from the code, you can override the background value of each i.e. info, warning and error
from bufferline.nvim.
Ahhhh, yea, i was missing the info_diagnostic_selected etc highlights,... might be good to link that bit of code in the readme ^^ Thanks for your help!
from bufferline.nvim.
Glad you found it 👍🏾 It's actually under :h bufferline-lua-highlights
in the help docs, maybe I'll point to those up more prominently in the README.
from bufferline.nvim.
Oh wow, surprised I managed to overlook that,... But yea, mentioning that would be cool! Specifically given that you're already mentioning some of the other fields there, may be good to specifically link to that help page :) Thanks!
from bufferline.nvim.
Related Issues (20)
- [Bug]: E5108: Error executing lua: attempt to get length of field 'text' (a nil value) HOT 2
- [Feature Request]: Expose buffer index HOT 1
- [Feature Request]: Persistent `:BufferLinePick` letters
- [Feature Request]: The derive hlgroup of function<derive_colors> should be configurable HOT 1
- [Bug]: attempt to call field 'setup' (a nil value) HOT 4
- [Bug]: With bufferline and telescope, buffers open in Insert (a) mode
- [Bug]: Icon bg colour not correct HOT 1
- [Bug]: (UNKNOWN PLUGIN): Error executing lua: attempt to call a number value HOT 5
- [Feature Request]: Text alignment in buffer tabs HOT 2
- [Bug]: offset doesn't work with neo-tree HOT 1
- [Bug]: Highlight "buffer" doesn't work
- [Bug]: Bufferline sets `showtabline=2` HOT 24
- Is it possible to ignore certain buffers in the bufferline, like terminal buffers for example? HOT 1
- [Feature Request]: A way to retrieve a buffer's `current_index` HOT 2
- [Bug]: Styling filetype icon for all filetypes not working/possible HOT 4
- [Bug]: (UNKNOWN PLUGIN): Error executing lua: attempt to call a nil value HOT 1
- [Feature Request]: Ability to pin all open buffers HOT 2
- Some common questions HOT 1
- [Feature Request]: I'd like to close only the current tab. HOT 6
- E5108 error in bufferline.nvim HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bufferline.nvim.