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

[Discussion] Default separator style. #457

Open
otavioschwanck opened this issue Apr 11, 2023 · 1 comment
Open

[Discussion] Default separator style. #457

otavioschwanck opened this issue Apr 11, 2023 · 1 comment
Labels
discussion A conversation
Milestone

Comments

@otavioschwanck
Copy link
Contributor

otavioschwanck commented Apr 11, 2023

Looking at my config:

image

Using the separator on the right, character: ▕

The separator (Sign) color is the same of the active background.

It looks more clean then the current default. Is worth setting this as default for barbar?

Based on vscode separator style:

image

My full setup:

      require('bufferline').setup({
        hide = {extensions = true},
        icons = {
          -- Configure the base icons on the bufferline.
          buffer_index = false,
          buffer_number = false,
          button = '',
          -- Enables / disables diagnostic symbols
          diagnostics = {
            [vim.diagnostic.severity.ERROR] = {enabled = true, icon = ''},
            [vim.diagnostic.severity.WARN] = {enabled = false},
            [vim.diagnostic.severity.INFO] = {enabled = false},
            [vim.diagnostic.severity.HINT] = {enabled = false},
          },
          filetype = {
            -- Sets the icon's highlight group.
            -- If false, will use nvim-web-devicons colors
            custom_colors = false,

            -- Requires `nvim-web-devicons` if `true`
            enabled = true,
          },
          separator = {left = '', right = ''},

          -- Configure the icons on the bufferline when modified or pinned.
          -- Supports all the base icon options.
          modified = {button = ''},
          pinned = {buffer_index = true, filename = true, button = '', separator = { right = '', left = ''} },

          -- Configure the icons on the bufferline based on the visibility of a buffer.
          -- Supports all the base icon options, plus `modified` and `pinned`.
          alternate = {filetype = {enabled = false}},
          current = {buffer_index = false},
          inactive = {button = '', separator = {left = '', right = ''}},
          visible = {modified = {buffer_number = false}},
        },
        sidebar_filetypes = {
          ['neo-tree'] = {event = 'BufWipeout'},
        },
        -- icon_pinned = '󰐃',
        exclude_ft = {'netrw'},
        -- closable = false,
        highlight_visible = false,
      })
@Iron-E Iron-E added the documentation Improvements or additions to documentation label Apr 11, 2023
@Iron-E Iron-E added this to the 1.7 milestone Apr 11, 2023
@Iron-E
Copy link
Collaborator

Iron-E commented Apr 11, 2023

Related: #141. I've been thinking about (after we release 1.6) to create configuration "presets" that users can use

@Iron-E Iron-E added discussion A conversation and removed documentation Improvements or additions to documentation labels Apr 13, 2023
@Iron-E Iron-E modified the milestones: 1.7, 1.8 Aug 26, 2023
@Iron-E Iron-E modified the milestones: 1.8, 1.9 Jun 7, 2024
@Iron-E Iron-E modified the milestones: 1.9, 1.10 Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A conversation
Projects
None yet
Development

No branches or pull requests

2 participants