Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: bubble line not working in latest version #645

Closed
yanisdb opened this issue Apr 9, 2022 · 3 comments
Closed

Bug: bubble line not working in latest version #645

yanisdb opened this issue Apr 9, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@yanisdb
Copy link

yanisdb commented Apr 9, 2022

Self Checks

  • [ X] I'm using the latest lualine.
  • [ X] I didn't find the issue in exsisting issues or prs.

Expected / Actual behaviour

Good morning,

I'm having some issues while theming lualine. The highlights are not applied correctly.

image

As you see there some blue hightlight that shoudn't be there on the side. I coudn't figure if it's something wrong with my config, the theme or lualine but skimming throught the theme repository and my config I coudn't find anything that could cause this issue so I'm reporting here where you might be able to help more.

Minimal config to reproduce the issue

Here is my configuration (theme from projekt0n/github-nvim-theme:

colorscheme github_dimmed

lua << EOF
local github_colors = require('github-theme.colors').setup({ theme_style = "dimmed" })
local github_util = require('github-theme.util')
local github_theme = require('lualine.themes.github_dimmed')

local tint_lualine_group = function(color)
local group = {
    a = {bg = color, fg = github_colors.bg},
    b = {bg = github_util.darken(color, 0.2), fg = github_util.lighten(color, 0.2)},
    c = { bg = github_colors.bg, fg = github_util.lighten(color, 0.4, github_colors.fg)}
    }
return group
end

github_theme.normal     = tint_lualine_group(github_colors.red)
github_theme.insert     = tint_lualine_group(github_colors.green)
github_theme.command    = tint_lualine_group(github_colors.bright_magenta)
github_theme.visual     = tint_lualine_group(github_colors.blue)
github_theme.replace    = tint_lualine_group(github_colors.yellow)
github_theme.inactive.a = github_theme.normal.b
github_theme.inactive.c = {bg = github_colors.bg}

require'lualine'.setup {
    options = {
        icons_enabled = true,
        theme = github_theme,
        section_separators = { left = '', right = ''},
        component_separators = { left = '|', right = '|'},
        disabled_filetypes = {},
        always_divide_middle = true,
        },
    sections = {
        lualine_a = {{ 'mode', separator = { left = '', right = ''}}},
        lualine_b = {'filename', 'diff',
        {'diagnostics', sources={'nvim_diagnostic', 'coc'}}},
        lualine_c = {},
        lualine_x = {},
        lualine_y = {'encoding', 'fileformat', 'filetype'},
        lualine_z = {{ 'location', separator = { left = '', right = ''}}},
        },
    inactive_sections = {
        lualine_a = {{ 'filename', separator = { left = '', right = ''}}},
        lualine_b = {},
        lualine_c = {},
        lualine_x = {},
        lualine_y = {},
        lualine_z = {{ 'location', separator = { left = '', right = ''}}},
        },
    tabline = {},
    extensions = {coc_extension}
    }
EOF
@yanisdb yanisdb added the bug Something isn't working label Apr 9, 2022
@shadmansaleh
Copy link
Member

shadmansaleh commented Apr 9, 2022

Can you check if adding

hi! link StatusLine Normal

somewhere between after setting colorscheme and before calling lualine setup. fixes this?

@yanisdb
Copy link
Author

yanisdb commented Apr 9, 2022

Indeed it works. I should probably dig deeper and fix the theme then but I don't have time for now.

@ArtemChandragupta
Copy link

Indeed it works. I should probably dig deeper and fix the theme then but I don't have time for now.

Hi! I have similar issue. Have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants