GithubHelp home page GithubHelp logo

mnjm / topline.nvim Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 28 KB

Simple and minimal tabline as a replacement to inbuilt one with icon and mouse support

License: MIT License

Lua 100.00%
nvim nvim-lua nvim-plugin

topline.nvim's Introduction

A tabline plugin as a replacement to inbuilt one with icon and mouse support

Demo Gi

My other plugins


Installation

vim-plug

Plug 'mnjm/topline.nvim'
" Optional dependency for icons
Plug 'nvim-tree/nvim-web-devicons'

packer.nvim

use {
    'mnjm/topline.nvim',
    -- optional dependency for icons 
    requires = { 'nvim-tree/nvim-web-devicons', opt = true }
}

lazy.nvim

{
    'mnjm/topline.nvim'
    dependencies = { 'nvim-tree/nvim-web-devicons' }
}

Setup

To start topline, add below line in your neovim config

require("topline").setup()

Customization

You can pass custom config to override default configs to setup call, for ex

require('topline').setup({
  enable = true,
  -- seperator = { pre = '', post = '' },
  -- seperator = { pre = '', post = '' },
  seperator = { pre = '',  post = '' },
  close_icon = " 󰅘 ",
  highlights = {
    TopLineClose = { fg = "#d70000", bg = "#000000" },
  },
})

Available default configuration options

require('topline').setup({
  enable = true,
  seperator = { pre = '', post = '' },
  enable_icons = true,
  max_fname_len = 25,     -- max file name len
  close_icon = "[x]",
  highlights = {          -- highlights
    TopLine         = { link = 'TabLine' },               -- tab title
    TopLineSel      = { link = 'TabLineSel' },            -- tab title [Focused]
    TopLineFill     = { link = 'TabLineFill' },           -- filler
    TopLineClose    = { link = 'TabLineSel' },            -- close button
  },
})

You can force nvim to show tabline always by

In lua

vim.o.showtabline = 2

In vim

set showtabline=2

Demo Gi Demo SS Demo SS


License MIT

topline.nvim's People

Contributors

mnjm avatar

Stargazers

Yuta Katayama avatar  avatar

Watchers

 avatar

topline.nvim's Issues

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.