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]: I have to call colorscheme catppuccin/tokyonight/... twice to apply to seperators #648

Closed
1 task done
matthis-k opened this issue Dec 26, 2022 · 3 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@matthis-k
Copy link
Contributor

matthis-k commented Dec 26, 2022

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

If I call colorscheme once, this is the result
2022-12-26T21:31:19,930435787+01:00
:

What did you expect to happen?

Expected behaviour is what happens after calling it again:
2022-12-26T21:34:15,490608467+01:00

Config

local config = function()
    require("bufferline").setup({
        options = {
            mode = "buffers",
            numbers = "none",
            close_command = "bdelete! %d",
            right_mouse_command = "bdelete! %d",
            left_mouse_command = "buffer %d",
            middle_mouse_command = "bdelete! %d",
            indicator = {
                icon = "",
                style = "icon",
            },
            buffer_close_icon = '',
            modified_icon = '',
            close_icon = '',
            left_trunc_marker = '',
            right_trunc_marker = '',
            max_name_length = 18,
            max_prefix_length = 15,
            truncate_names = true,
            tab_size = 18,
            diagnostics = "nvim_lsp",
            diagnostics_update_in_insert = true,
            diagnostics_indicator = function(count, level, diagnostics_dict, context)
                return "(" .. count .. ")"
            end,
            offsets = {
                {
                    filetype = "neo-tree",
                    text = "File Explorer",
                    text_align = "left",
                    separator = true
                }
            },
            color_icons = true,
            show_buffer_icons = true,
            show_buffer_close_icons = true,
            show_buffer_default_icon = true,
            show_close_icon = true,
            show_tab_indicators = true,
            show_duplicate_prefix = true,
            persist_buffer_sort = true,
            separator_style = "slant",
            enforce_regular_tabs = true,
            always_show_bufferline = true,
            hover = {
                enabled = true,
                delay = 200,
                reveal = { 'close' }
            },
            sort_by = 'insert_after_current',
        }
    })
end

Additional Information

No response

commit

No response

@matthis-k matthis-k added the bug Something isn't working label Dec 26, 2022
@akinsho
Copy link
Owner

akinsho commented Dec 28, 2022

@matthis-k I'm not immediately sure what action is required on my part. Colorschemes are free to handle applying highlights in whatever way they want which can often lead to issues with plugins such as this one. This does not immediately indicate a bug with this plugin. If you are able to reproduce this issue with other plugins and a minimal init.lua please post that in this thread and I'll reopen this but as you might find from previous closed issues I've been asked a lot about individual colorschemes only to find the issue was not with this plugin after losing a lot of my free time investigating

@akinsho akinsho closed this as completed Dec 28, 2022
@ema2159
Copy link

ema2159 commented Apr 1, 2023

@matthis-k I am experiencing this issue too. The hacky way of solving it I found was to load the color scheme twice in my configuration, once before and once after bufferline is loaded. It's hacky but it works.

@ansidev
Copy link
Contributor

ansidev commented Apr 25, 2023

@ema2159 Follow the official guides from the colorscheme author.

FYI: https://github.com/catppuccin/nvim#special-integrations

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

4 participants