romgrk / barbar.nvim

The neovim tabline plugin.
2.2k stars 81 forks source link

Separator are not working globally #419

Closed otavioschwanck closed 1 year ago

otavioschwanck commented 1 year ago

I want to remove completely the separators, but the separator option is not working.

config:

      require('bufferline').setup({
        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 = 'ff'},
            [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, separator = { left= '', right='' } },

          -- 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 = ''},
          visible = {modified = {buffer_number = false}},
        },
        -- icon_pinned = '󰐃',
        exclude_ft = {'netrw'},
        -- closable = false,
        minimum_padding = 1,
        maximum_padding = 1
      })
image
Iron-E commented 1 year ago

There are inactive separators by default. See :h barbar-setup.icons.inactive

otavioschwanck commented 1 year ago

Setting inactive = {button = '', separator = {left = '', right = ''}}, fixed, thanks!