Code Monkey home page Code Monkey logo

Comments (7)

akinsho avatar akinsho commented on May 20, 2024

@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.

elkowar avatar elkowar commented on May 20, 2024

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.

akinsho avatar akinsho commented on May 20, 2024

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.

akinsho avatar akinsho commented on May 20, 2024

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.

elkowar avatar elkowar commented on May 20, 2024

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.

akinsho avatar akinsho commented on May 20, 2024

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.

elkowar avatar elkowar commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.