romgrk / barbar.nvim

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

feat: scope.nvim integration #559

Closed Iron-E closed 3 months ago

Iron-E commented 3 months ago

Closes #556

require('scope').setup {
  hooks = {
    pre_tab_leave = function()
      vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabLeavePre'})
      -- [other statements]
    end,

    post_tab_enter = function()
      vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabEnterPost'})
      -- [other statements]
    end,

    -- [other hooks]
  },

  -- [other options]
}