{"id":22007608,"url":"https://github.com/taohexxx/lightline-buffer","last_synced_at":"2025-05-05T23:23:28.532Z","repository":{"id":162657457,"uuid":"124985840","full_name":"taohexxx/lightline-buffer","owner":"taohexxx","description":"A buffer plugin for lightline.vim","archived":false,"fork":false,"pushed_at":"2019-03-12T13:04:17.000Z","size":265,"stargazers_count":28,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T00:41:18.361Z","etag":null,"topics":["buffer","lightline","tabline","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taohexxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-13T03:18:22.000Z","updated_at":"2023-07-29T15:48:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"eab9e878-25aa-4c30-83a9-b265c1e6ee75","html_url":"https://github.com/taohexxx/lightline-buffer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taohexxx%2Flightline-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taohexxx%2Flightline-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taohexxx%2Flightline-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taohexxx%2Flightline-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taohexxx","download_url":"https://codeload.github.com/taohexxx/lightline-buffer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252591336,"owners_count":21773070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buffer","lightline","tabline","vim"],"created_at":"2024-11-30T01:28:18.372Z","updated_at":"2025-05-05T23:23:28.522Z","avatar_url":"https://github.com/taohexxx.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lightline-buffer \u0026middot; [![Build Status](https://travis-ci.org/taohexxx/lightline-buffer.svg?branch=master)](https://travis-ci.org/taohexxx/lightline-buffer) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n\nA buffer plugin for [lightline.vim](https://github.com/itchyny/lightline.vim)\n\n![lightline-buffer](http://taohexxx.github.io/lightline-buffer/images/lightline-buffer.png)\n\n## Main Features\n\n*\t:star2: Clickable buffer switching\n\n*\t:page_with_curl: Show file type icon with perfect UTF-8 support\n\n*\t:pencil2: Show tab info and buffer info in tabline\n\n*\t:left_right_arrow: Support using left / right arrow key for quickly switching buffer\n\n*\t:mag: Auto-folding for long buffer name\n\n*\t:triangular_ruler: Scrollable when tabline length overflow screen\n\n## Usage\n\n1.\tMake sure you've already installed [lightline.vim](https://github.com/itchyny/lightline.vim)\n\n2.\tAdd this repo to your favorite vim plugin manager\n\n\tIf you are using [Dein.vim](https://github.com/Shougo/dein.vim) (recommended)\n\n\t```vim\n\tcall dein#add('taohexxx/lightline-buffer')\n\t```\n\n\tIf you are using [NeoBundle](https://github.com/Shougo/neobundle.vim)\n\n\t```vim\n\tNeoBundle 'taohexxx/lightline-buffer'\n\t```\n\n3.\tAdd this block to your init.vim (for neovim) or .vimrc (for vim)\n\n\t```vim\n\tset hidden  \" allow buffer switching without saving\n\tset showtabline=2  \" always show tabline\n\n\t\" use lightline-buffer in lightline\n\tlet g:lightline = {\n\t    \\ 'tabline': {\n\t    \\   'left': [ [ 'bufferinfo' ],\n\t    \\             [ 'separator' ],\n\t    \\             [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ],\n\t    \\   'right': [ [ 'close' ], ],\n\t    \\ },\n\t    \\ 'component_expand': {\n\t    \\   'buffercurrent': 'lightline#buffer#buffercurrent',\n\t    \\   'bufferbefore': 'lightline#buffer#bufferbefore',\n\t    \\   'bufferafter': 'lightline#buffer#bufferafter',\n\t    \\ },\n\t    \\ 'component_type': {\n\t    \\   'buffercurrent': 'tabsel',\n\t    \\   'bufferbefore': 'raw',\n\t    \\   'bufferafter': 'raw',\n\t    \\ },\n\t    \\ 'component_function': {\n\t    \\   'bufferinfo': 'lightline#buffer#bufferinfo',\n\t    \\ },\n\t    \\ 'component': {\n\t    \\   'separator': '',\n\t    \\ },\n\t    \\ }\n\n\t\" remap arrow keys\n\tnnoremap \u003cLeft\u003e :bprev\u003cCR\u003e\n\tnnoremap \u003cRight\u003e :bnext\u003cCR\u003e\n\n\t\" lightline-buffer ui settings\n\t\" replace these symbols with ascii characters if your environment does not support unicode\n\tlet g:lightline_buffer_logo = ' '\n\tlet g:lightline_buffer_readonly_icon = ''\n\tlet g:lightline_buffer_modified_icon = '✭'\n\tlet g:lightline_buffer_git_icon = ' '\n\tlet g:lightline_buffer_ellipsis_icon = '..'\n\tlet g:lightline_buffer_expand_left_icon = '◀ '\n\tlet g:lightline_buffer_expand_right_icon = ' ▶'\n\tlet g:lightline_buffer_active_buffer_left_icon = ''\n\tlet g:lightline_buffer_active_buffer_right_icon = ''\n\tlet g:lightline_buffer_separator_icon = '  '\n\n\t\" enable devicons, only support utf-8\n\t\" require \u003chttps://github.com/ryanoasis/vim-devicons\u003e\n\tlet g:lightline_buffer_enable_devicons = 1\n\n\t\" lightline-buffer function settings\n\tlet g:lightline_buffer_show_bufnr = 1\n\n\t\" :help filename-modifiers\n\tlet g:lightline_buffer_fname_mod = ':t'\n\n\t\" hide buffer list\n\tlet g:lightline_buffer_excludes = ['vimfiler']\n\n\t\" max file name length\n\tlet g:lightline_buffer_maxflen = 30\n\n\t\" max file extension length\n\tlet g:lightline_buffer_maxfextlen = 3\n\n\t\" min file name length\n\tlet g:lightline_buffer_minflen = 16\n\n\t\" min file extension length\n\tlet g:lightline_buffer_minfextlen = 3\n\n\t\" reserve length for other component (e.g. info, close)\n\tlet g:lightline_buffer_reservelen = 20\n\t```\n\n4.\tShow file type icons\n\n\tInstall [VimDevIcons](https://github.com/ryanoasis/vim-devicons) in your favorite vim plugin manager\n\n## Examples\n\n[Navim](https://github.com/taohexxx/navim)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaohexxx%2Flightline-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaohexxx%2Flightline-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaohexxx%2Flightline-buffer/lists"}