SkillAgentSearch skills...

Tabstrip.nvim

Unobtrusive tabline for Neovim.

Install / Use

/learn @rafi/Tabstrip.nvim
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

tabstrip.nvim

Unobtrusive tabline for Neovim.

Overview

Minimal and opinionated tabline with enough features to be efficient, but doesn't draw too much attention.

Features:

  • Project base-name at the left-corner
  • Highlights are adapted from current colorscheme
  • File-type and modified icons
  • Session name at the right-corner

Install

Requirements:

Use your favorite package-manager:

<details> <summary>With <a href="https://github.com/folke/lazy.nvim">lazy.nvim</a></summary>
{
  'rafi/tabstrip.nvim',
  dependencies = {
    'nvim-tree/nvim-web-devicons',
    'nvim-lua/plenary.nvim'
  },
  version = false,
  config = true,
},
</details> <details> <summary>With <a href="https://github.com/wbthomason/packer.nvim">packer.nvim</a></summary>
use {
  'rafi/tabstrip.nvim',
  requires = {
    'nvim-tree/nvim-web-devicons',
    'nvim-lua/plenary.nvim'
  }
}
</details>

Setup

If you're using lazy.nvim, set config or opts property (See Install instructions).

Otherwise, setup manually:

require('tabstrip').setup()

Config

These are the default settings:

require('tabstrip').setup({
  -- Limit display of directories in path
  max_dirs = 1,
  -- Limit display of characters in each directory in path
  directory_max_chars = 5,

  icons = {
    modified = '+',
    session = '',
  },

  colors = {
    modified = '#cf6a4c',
  },

  numeric_charset = {'⁰','¹','²','³','⁴','⁵','⁶','⁷','⁸','⁹'},
})

If you are using lazy.nvim, you can use the opts property, e.g.:

{
  'rafi/tabstrip.nvim',
  dependencies = { 'nvim-tree/nvim-web-devicons' },
  version = false,
  opts = {
    directory_max_chars = 8
  },
},

See More

Alternatives:

Enjoy!

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated2y ago
Forks0

Languages

Lua

Security Score

55/100

Audited on Sep 19, 2023

No findings