GithubHelp home page GithubHelp logo

Comments (5)

Iron-E avatar Iron-E commented on May 30, 2024 1

When re-implementing the icons option in #386, we had to preserve an independent default with icons.inactive.separator.left for backwards compatibility. In the short term, you can fix this with something like this:

--[[ minimal.lua ]]
vim.opt.rtp:prepend {
  vim.fn.stdpath('data') .. '/lazy/barbar.nvim',
}

vim.g.barbar_auto_setup = false
require('barbar').setup {
  icons = {
    filetype = { enabled = false },
    separator_at_end = false,

    separator = { left = '', right = '' },
    inactive = {
      separator = {
          left = '', -- ← this is the fix
      },
    },
  },
}

Run the above with nvim --clean -u minimal.lua to try it out without modifying your configuration. Adding the noted option above to your configuration should also produce the desired behavior.


@romgrk what is your opinion on changing this default before 2.0? We've had similar reports to this previously (#419, #513), so it seems to be a common pain point

from barbar.nvim.

ThaiDuy12345 avatar ThaiDuy12345 commented on May 30, 2024 1
inactive = {
      separator = {
          left = '', -- ← this is the fix
      },
    },

This worked, thanks 😊

from barbar.nvim.

romgrk avatar romgrk commented on May 30, 2024 1

Not a fan, don't like forcing users to mess with their config.

from barbar.nvim.

romgrk avatar romgrk commented on May 30, 2024

what is your opinion on changing this default before 2.0?

What would be the downside?

from barbar.nvim.

Iron-E avatar Iron-E commented on May 30, 2024

What would be the downside?

The only one that comes to mind is that some users may have to adjust their configurations to get the results they saw previously.

from barbar.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.