{"pageProps":{"allDocs":[{"category":"Tabline","items":[{"url":"https://github.com/akinsho/bufferline.nvim","name":"akinsho/bufferline.nvim","description":"A snazzy bufferline for Neovim","created":"Mar 02, 2022 6:25","slug":"akinsho-bufferline-nvim","stars":944,"category":"Tabline"},{"url":"https://github.com/crispgm/nvim-tabline","name":"crispgm/nvim-tabline","description":"nvim port of tabline.vim with Lua","created":"Mar 02, 2022 5:03","slug":"crispgm-nvim-tabline","stars":19,"category":"Tabline"},{"url":"https://github.com/koenverburg/minimal-tabline.nvim","name":"koenverburg/minimal-tabline.nvim","description":"A minimal tabline, that's it","created":"Mar 16, 2022 12:33","slug":"koenverburg-minimal-tabline-nvim","stars":2,"category":"Tabline"},{"url":"https://github.com/nanozuki/tabby.nvim","name":"nanozuki/tabby.nvim","description":"A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!","created":"Jul 11, 2023 12:21","slug":"nanozuki-tabby-nvim","stars":381,"category":"Tabline"},{"url":"https://github.com/noib3/nvim-cokeline","name":"noib3/nvim-cokeline","description":":nose: A Neovim bufferline for people with addictive personalities","created":"Mar 02, 2022 6:22","slug":"noib3-nvim-cokeline","stars":169,"category":"Tabline"},{"url":"https://github.com/romgrk/barbar.nvim","name":"romgrk/barbar.nvim","description":"The neovim tabline plugin.","created":"Mar 02, 2022 4:01","slug":"romgrk-barbar-nvim","stars":899,"category":"Tabline"}]},{"category":"Status Line","items":[{"url":"https://github.com/alvarosevilla95/luatab.nvim","name":"alvarosevilla95/luatab.nvim","description":"Tabline lua plugin for neovim","created":"Mar 02, 2022 6:14","slug":"alvarosevilla95-luatab-nvim","stars":109,"category":"Status Line"},{"url":"https://github.com/b0o/incline.nvim","name":"b0o/incline.nvim","description":"π Floating statuslines for Neovim","created":"May 09, 2022 6:38","slug":"b0o-incline-nvim","stars":105,"category":"Status Line"},{"url":"https://github.com/datwaft/bubbly.nvim","name":"datwaft/bubbly.nvim","description":"Bubbly statusline for neovim","created":"Mar 02, 2022 6:27","slug":"datwaft-bubbly-nvim","stars":167,"category":"Status Line"},{"url":"https://github.com/feline-nvim/feline.nvim","name":"feline-nvim/feline.nvim","description":"A minimal, stylish and customizable statusline for Neovim written in Lua","created":"Mar 03, 2022 12:10","slug":"feline-nvim-feline-nvim","stars":564,"category":"Status Line"},{"url":"https://github.com/konapun/vacuumline.nvim","name":"konapun/vacuumline.nvim","description":"A prebuilt configuration for galaxyline inspired by airline","created":"Mar 02, 2022 6:16","slug":"konapun-vacuumline-nvim","stars":17,"category":"Status Line"},{"url":"https://github.com/NTBBloodbath/galaxyline.nvim","name":"NTBBloodbath/galaxyline.nvim","description":"neovim statusline plugin written in lua ","created":"Mar 02, 2022 6:29","slug":"ntbbloodbath-galaxyline-nvim","stars":118,"category":"Status Line"},{"url":"https://github.com/nvim-lualine/lualine.nvim","name":"nvim-lualine/lualine.nvim","description":"A blazing fast and easy to configure neovim statusline plugin written in pure lua.","created":"Mar 13, 2022 1:22","slug":"nvim-lualine-lualine-nvim","stars":1434,"category":"Status Line"},{"url":"https://github.com/rebelot/heirline.nvim","name":"rebelot/heirline.nvim","description":"Heirline.nvim is a no-nonsense Neovim Statusline plugin designed around recursive inheritance to be exceptionally fast and versatile.","created":"Mar 13, 2022 8:55","slug":"rebelot-heirline-nvim","stars":208,"category":"Status Line"},{"url":"https://github.com/tamton-aquib/staline.nvim","name":"tamton-aquib/staline.nvim","description":"A modern lightweight statusline and bufferline for neovim in lua. Mainly uses unicode symbols for showing info.","created":"Mar 27, 2022 6:43","slug":"tamton-aquib-staline-nvim","stars":138,"category":"Status Line"},{"url":"https://github.com/windwp/windline.nvim","name":"windwp/windline.nvim","description":"Animation statusline, floating window statusline. Use lua + luv make some wind","created":"Mar 02, 2022 6:20","slug":"windwp-windline-nvim","stars":280,"category":"Status Line"}]},{"category":"Keybinding","items":[{"url":"https://github.com/b0o/mapx.nvim","name":"b0o/mapx.nvim","description":"πΊ A better way to create key mappings in Neovim.","created":"Mar 13, 2022 4:24","slug":"b0o-mapx-nvim","stars":141,"category":"Keybinding"},{"url":"https://github.com/folke/which-key.nvim","name":"folke/which-key.nvim","description":"π₯ Create key bindings that stick. WhichKey is a lua plugin for Neovim 0.5 that displays a popup with possible keybindings of the command you started typing.","created":"Mar 14, 2022 1:44","slug":"folke-which-key-nvim","stars":1189,"category":"Keybinding"},{"url":"https://github.com/mrjones2014/legendary.nvim","name":"mrjones2014/legendary.nvim","description":"πΊοΈ A legend for your keymaps, commands, and autocmds, with which-key.nvim integration (requires Neovim nightly)","created":"Mar 12, 2022 11:35","slug":"mrjones2014-legendary-nvim","stars":210,"category":"Keybinding"},{"url":"https://github.com/simrat39/rust-tools.nvim","name":"simrat39/rust-tools.nvim","description":"Tools for better development in rust using neovim's builtin lsp","created":"Mar 14, 2022 11:53","slug":"simrat39-rust-tools-nvim","stars":684,"category":"Keybinding"}]},{"category":"LSP","items":[{"url":"https://github.com/b0o/SchemaStore.nvim","name":"b0o/SchemaStore.nvim","description":"π JSON schemas for Neovim","created":"Mar 13, 2022 4:24","slug":"b0o-schemastore-nvim","stars":159,"category":"LSP"},{"url":"https://github.com/folke/trouble.nvim","name":"folke/trouble.nvim","description":"π¦ A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.","created":"Mar 12, 2022 3:23","slug":"folke-trouble-nvim","stars":1388,"category":"LSP"},{"url":"https://github.com/jose-elias-alvarez/nvim-lsp-ts-utils","name":"jose-elias-alvarez/nvim-lsp-ts-utils","description":"Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.","created":"Mar 1, 2022 4:07 pm","slug":"jose-elias-alvarez-nvim-lsp-ts-utils","stars":373,"category":"LSP"},{"url":"https://github.com/neovim/nvim-lspconfig","name":"neovim/nvim-lspconfig","description":"Quickstart configurations for the Nvim LSP client","created":"Mar 1, 2022 4:04 pm","slug":"neovim-nvim-lspconfig","stars":3936,"category":"LSP"},{"url":"https://github.com/nvim-lua/lsp_extensions.nvim","name":"nvim-lua/lsp_extensions.nvim","description":"Repo to hold a bunch of info & extension callbacks for built-in LSP. Use at your own risk :wink:","created":"Mar 1, 2022 4:05 pm","slug":"nvim-lua-lsp-extensions-nvim","stars":193,"category":"LSP"},{"url":"https://github.com/nvim-lua/lsp-status.nvim","name":"nvim-lua/lsp-status.nvim","description":"Utility functions for getting diagnostic status and progress messages from LSP servers, for use in the Neovim statusline","created":"Mar 1, 2022 4:05 pm","slug":"nvim-lua-lsp-status-nvim","stars":426,"category":"LSP"},{"url":"https://github.com/ray-x/navigator.lua","name":"ray-x/navigator.lua","description":"Navigate codes like a breezeπ. Exploring LSP and π²Treesitter symbols a piece of π°. Take control like a boss π¦.","created":"Mar 1, 2022 4:07 pm","slug":"ray-x-navigator-lua","stars":572,"category":"LSP"},{"url":"https://github.com/williamboman/nvim-lsp-installer","name":"williamboman/nvim-lsp-installer","description":"Neovim plugin that allows you to seamlessly manage LSP servers with :LspInstall. With full Windows support!","created":"Mar 13, 2022 12:14","slug":"williamboman-nvim-lsp-installer","stars":1157,"category":"LSP"}]},{"category":"Guides","items":[{"url":"https://github.com/bennypowers/nvim-regexplainer","name":"bennypowers/nvim-regexplainer","description":"Describe the regexp under the cursor","created":"Mar 13, 2022 2:21","slug":"bennypowers-nvim-regexplainer","stars":183,"category":"Guides"},{"url":"https://github.com/nvim-lua/kickstart.nvim","name":"nvim-lua/kickstart.nvim","description":"A launch point for your personal nvim configuration","created":"Dec 30, 2022 2:44","slug":"nvim-lua-kickstart-nvim","stars":2356,"category":"Guides"}]},{"category":"Colorschemes","items":[{"url":"https://github.com/catppuccin/nvim","name":"catppuccin/nvim","description":"π¨ Soothing pastel theme for NeoVim","created":"Mar 13, 2022 3:31","slug":"catppuccin-nvim","stars":546,"category":"Colorschemes"},{"url":"https://github.com/dharmx/nvim-colo","name":"dharmx/nvim-colo","description":"Theming utlilities for neovim. This is very experimental at the moment.","created":"Jan 17, 2023 3:29","slug":"dharmx-nvim-colo","stars":26,"category":"Colorschemes"},{"url":"https://github.com/ful1e5/onedark.nvim","name":"ful1e5/onedark.nvim","description":"Atom's iconic One Dark theme for Neovim, written in Lua","created":"Mar 19, 2022 8:56","slug":"ful1e5-onedark-nvim","stars":174,"category":"Colorschemes"},{"url":"https://github.com/HUAHUAI23/nvim-quietlight","name":"HUAHUAI23/nvim-quietlight","description":"A theme for Neovim with support for LSP, Treesitter, and more.","created":"Feb 24, 2023 12:21","slug":"huahuai23-nvim-quietlight","stars":0,"category":"Colorschemes"},{"url":"https://github.com/kvrohit/substrata.nvim","name":"kvrohit/substrata.nvim","description":" A cold, dark color scheme for Neovim","created":"Mar 13, 2022 6:12","slug":"kvrohit-substrata-nvim","stars":56,"category":"Colorschemes"},{"url":"https://github.com/lalitmee/cobalt2.nvim","name":"lalitmee/cobalt2.nvim","description":"cobalt2 theme for neovim in Lua using colorbuddy","created":"Mar 13, 2022 4:00","slug":"lalitmee-cobalt2-nvim","stars":7,"category":"Colorschemes"},{"url":"https://github.com/luisiacc/gruvbox-baby","name":"luisiacc/gruvbox-baby","description":"Gruvbox theme for neovim with full πTreeSitter support. ","created":"Mar 13, 2022 12:14","slug":"luisiacc-gruvbox-baby","stars":42,"category":"Colorschemes"},{"url":"https://github.com/mhartington/oceanic-next","name":"mhartington/oceanic-next","description":"Oceanic Next theme for neovim","created":"Mar 02, 2022 6:31","slug":"mhartington-oceanic-next","stars":986,"category":"Colorschemes"},{"url":"https://github.com/Mofiqul/adwaita.nvim","name":"Mofiqul/adwaita.nvim","description":"Neovim colorscheme using Gnome Adwaita syntax","created":"Apr 15, 2022 3:56","slug":"mofiqul-adwaita-nvim","stars":38,"category":"Colorschemes"},{"url":"https://github.com/Mofiqul/dracula.nvim","name":"Mofiqul/dracula.nvim","description":"Dracula colorscheme for neovim written in Lua","created":"Mar 1, 2022 4:11 pm","slug":"mofiqul-dracula-nvim","stars":123,"category":"Colorschemes"},{"url":"https://github.com/mrjones2014/lighthaus.nvim","name":"mrjones2014/lighthaus.nvim","description":"A Lua implementation of lighthaus-theme/vim-lighthaus","created":"Apr 01, 2022 2:06","slug":"mrjones2014-lighthaus-nvim","stars":40,"category":"Colorschemes"},{"url":"https://github.com/navarasu/onedark.nvim","name":"navarasu/onedark.nvim","description":"One dark and light colorscheme for neovim >= 0.5.0 written in lua based on Atom's One Dark and Light theme. Additionally, it comes with 5 color variant styles","created":"Mar 1, 2022 10:13 pm","slug":"navarasu-onedark-nvim","stars":270,"category":"Colorschemes"},{"url":"https://github.com/NTBBloodbath/doom-one.nvim","name":"NTBBloodbath/doom-one.nvim","description":"doom-emacs' doom-one Lua port for Neovim","created":"Mar 1, 2022 10:16 pm","slug":"ntbbloodbath-doom-one-nvim","stars":74,"category":"Colorschemes"},{"url":"https://github.com/rebelot/kanagawa.nvim","name":"rebelot/kanagawa.nvim","description":"NeoVim dark colorscheme inspired by the colors of the famous painting by Katsushika Hokusai.","created":"Mar 13, 2022 8:56","slug":"rebelot-kanagawa-nvim","stars":738,"category":"Colorschemes"},{"url":"https://github.com/rose-pine/neovim","name":"rose-pine/neovim","description":"Soho vibes for Neovim","created":"Mar 1, 2022 4:11 pm","slug":"rose-pine-neovim","stars":310,"category":"Colorschemes"},{"url":"https://github.com/RRethy/nvim-base16","name":"RRethy/nvim-base16","description":"Neovim plugin for building a sync base16 colorscheme. Includes support for Treesitter and LSP highlight groups.","created":"Dec 30, 2022 2:40","slug":"rrethy-nvim-base16","stars":301,"category":"Colorschemes"},{"url":"https://github.com/sunjon/Shade.nvim","name":"sunjon/Shade.nvim","description":"An Nvim lua plugin that dims your inactive windows","created":"Dec 30, 2022 2:39","slug":"sunjon-shade-nvim","stars":374,"category":"Colorschemes"},{"url":"https://github.com/ThemerCorp/themer.lua","name":"themercorp/themer.lua","description":"A simple, minimal highlighter plugin for neovim","created":"Mar 14, 2022 11:51","slug":"themercorp-themer-lua","stars":130,"category":"Colorschemes"},{"url":"https://github.com/zanglg/nova.nvim","name":"zanglg/nova.nvim","description":"Another color scheme for neovim written in lua, WIP","created":"Oct 17, 2022 2:07","slug":"zanglg-nova-nvim","stars":82,"category":"Colorschemes"}]},{"category":"Comment","items":[{"url":"https://github.com/danymat/neogen","name":"danymat/neogen","description":"A better annotation generator. Supports multiple languages and annotation conventions.","created":"Mar 13, 2022 3:21","slug":"danymat-neogen","stars":373,"category":"Comment"}]},{"category":"Utility","items":[{"url":"https://github.com/echasnovski/mini.nvim","name":"echasnovski/mini.nvim","description":"Neovim plugin with collection of minimal, independent, and fast Lua modules dedicated to improve Neovim (version 0.5 and higher) experience","created":"Mar 27, 2022 6:45","slug":"echasnovski-mini-nvim","stars":405,"category":"Utility"},{"url":"https://github.com/hood/popui.nvim","name":"hood/popui.nvim","description":"NeoVim UI sweetness powered by popfix.","created":"Apr 15, 2022 3:41","slug":"hood-popui-nvim","stars":42,"category":"Utility"},{"url":"https://github.com/meznaric/conmenu","name":"meznaric/conmenu","description":"","created":"Mar 13, 2022 12:52","slug":"meznaric-conmenu","stars":21,"category":"Utility"},{"url":"https://github.com/mrjones2014/dash.nvim","name":"mrjones2014/dash.nvim","description":"ππ¨ Search Dash.app from your Neovim fuzzy finder. Built with Rust π¦ and Lua","created":"Apr 01, 2022 2:07","slug":"mrjones2014-dash-nvim","stars":132,"category":"Utility"}]},{"category":"Cursor Line","items":[{"url":"https://github.com/edluffy/specs.nvim","name":"edluffy/specs.nvim","description":"π A fast and lightweight Neovim lua plugin to keep an eye on where your cursor has jumped.","created":"Apr 15, 2022 3:31","slug":"edluffy-specs-nvim","stars":233,"category":"Cursor Line"},{"url":"https://github.com/mg979/vim-visual-multi","name":"mg979/vim-visual-multi","description":"Multiple cursors plugin for vim/neovim","created":"Apr 15, 2022 3:51","slug":"mg979-vim-visual-multi","stars":2046,"category":"Cursor Line"}]},{"category":"Code Runner","items":[{"url":"https://github.com/FeiyouG/command_center.nvim","name":"FeiyouG/command_center.nvim","description":"Create and manage keybindings and commands in a more organized manner, and search them quickly through Telescope","created":"Apr 15, 2022 3:37","slug":"feiyoug-command-center-nvim","stars":57,"category":"Code Runner"}]},{"category":"Extras","items":[{"url":"https://github.com/folke/zen-mode.nvim","name":"folke/zen-mode.nvim","description":"π§ Distraction-free coding for Neovim","created":"Mar 1, 2022 1:08 pm","slug":"folke-zen-mode-nvim","stars":377,"category":"Extras"},{"url":"https://github.com/goolord/alpha-nvim","name":"goolord/alpha-nvim","description":"a lua powered greeter like vim-startify / dashboard-nvim","created":"Mar 14, 2022 6:22","slug":"goolord-alpha-nvim","stars":322,"category":"Extras"}]},{"category":"Start Up","items":[{"url":"https://github.com/henriquehbr/nvim-startup.lua","name":"henriquehbr/nvim-startup.lua","description":"Displays neovim startup time","created":"Mar 12, 2022 6:34","slug":"henriquehbr-nvim-startup-lua","stars":45,"category":"Start Up"},{"url":"https://github.com/lewis6991/impatient.nvim","name":"lewis6991/impatient.nvim","description":"Improve startup time for Neovim","created":"Mar 13, 2022 1:07","slug":"lewis6991-impatient-nvim","stars":563,"category":"Start Up"}]},{"category":"Session","items":[{"url":"https://github.com/HUAHUAI23/telescope-session.nvim","name":"HUAHUAI23/telescope-session.nvim","description":"manage your vim session with telescope π","created":"Feb 24, 2023 12:20","slug":"huahuai23-telescope-session-nvim","stars":12,"category":"Session"}]},{"category":"Fuzzy Finder","items":[{"url":"https://github.com/ibhagwan/fzf-lua","name":"ibhagwan/fzf-lua","description":"Improved fzf.vim written in lua","created":"Mar 13, 2022 8:09","slug":"ibhagwan-fzf-lua","stars":418,"category":"Fuzzy Finder"},{"url":"https://github.com/nvim-telescope/telescope.nvim","name":"nvim-telescope/telescope.nvim","description":"Find, Filter, Preview, Pick. All lua, all the time.","created":"Mar 1, 2022 4:10 pm","slug":"nvim-telescope-telescope-nvim","stars":5023,"category":"Fuzzy Finder"},{"url":"https://github.com/vijaymarupudi/nvim-fzf","name":"vijaymarupudi/nvim-fzf","description":"A Lua API for using fzf in neovim.","created":"Mar 1, 2022 10:45 pm","slug":"vijaymarupudi-nvim-fzf","stars":223,"category":"Fuzzy Finder"}]},{"category":"Misc","items":[{"url":"https://github.com/iggredible/Learn-Vim","name":"iggredible/Learn-Vim","description":"Learning Vim and Vimscript doesn't have to be hard. This is the guide that you're looking for π","created":"Dec 30, 2022 2:36","slug":"iggredible-learn-vim","stars":9061,"category":"Misc"},{"url":"https://github.com/m-demare/attempt.nvim","name":"m-demare/attempt.nvim","description":"Manage temporary buffers","created":"Sep 17, 2022 8:31","slug":"m-demare-attempt-nvim","stars":53,"category":"Misc"},{"url":"https://github.com/SmiteshP/nvim-gps","name":"SmiteshP/nvim-gps","description":"Simple statusline component that shows what scope you are working inside","created":"Mar 13, 2022 3:45","slug":"smiteshp-nvim-gps","stars":348,"category":"Misc"},{"url":"https://github.com/windwp/nvim-autopairs","name":"windwp/nvim-autopairs","description":"autopairs for neovim written by lua","created":"Nov 24, 2022 7:00","slug":"windwp-nvim-autopairs","stars":1479,"category":"Misc"},{"url":"https://github.com/zegervdv/nrpattern.nvim","name":"zegervdv/nrpattern.nvim","description":"Neovim plugin to expand incrementing/decrementing to more formats.","created":"Mar 13, 2022 6:02","slug":"zegervdv-nrpattern-nvim","stars":43,"category":"Misc"}]},{"category":"Note Taking","items":[{"url":"https://github.com/jakewvincent/mkdnflow.nvim","name":"jakewvincent/mkdnflow.nvim","description":"Tools for markdown notebook navigation and management","created":"Mar 12, 2022 11:09","slug":"jakewvincent-mkdnflow-nvim","stars":97,"category":"Note Taking"},{"url":"https://github.com/nvim-neorg/neorg","name":"nvim-neorg/neorg","description":"Modernity meets insane extensibility. The future of organizing your life in Neovim.","created":"Mar 14, 2022 11:52","slug":"nvim-neorg-neorg","stars":2078,"category":"Note Taking"}]},{"category":"Motion","items":[{"url":"https://github.com/jinh0/eyeliner.nvim","name":"jinh0/eyeliner.nvim","description":"π Move faster with unique f/F indicators.","created":"Mar 23, 2023 4:23","slug":"jinh0-eyeliner-nvim","stars":170,"category":"Motion"}]},{"category":"Terminal Integration","items":[{"url":"https://github.com/jlesquembre/nterm.nvim","name":"jlesquembre/nterm.nvim","description":"neovim plugin to interact with the terminal","created":"Mar 17, 2022 3:51","slug":"jlesquembre-nterm-nvim","stars":35,"category":"Terminal Integration"}]},{"category":"Scrolling","items":[{"url":"https://github.com/karb94/neoscroll.nvim","name":"karb94/neoscroll.nvim","description":"Smooth scrolling neovim plugin written in lua","created":"Dec 30, 2022 2:39","slug":"karb94-neoscroll-nvim","stars":765,"category":"Scrolling"}]},{"category":"Git","items":[{"url":"https://github.com/kdheepak/lazygit.nvim","name":"kdheepak/lazygit.nvim","description":"Plugin for calling lazygit from within neovim.","created":"Apr 15, 2022 3:39","slug":"kdheepak-lazygit-nvim","stars":313,"category":"Git"},{"url":"https://github.com/zegervdv/settle.nvim","name":"zegervdv/settle.nvim","description":"Settle your merge conflicts from Neovim","created":"Aug 04, 2022 6:55","slug":"zegervdv-settle-nvim","stars":0,"category":"Git"}]},{"category":"File Explorer","items":[{"url":"https://github.com/kevinhwang91/rnvimr","name":"kevinhwang91/rnvimr","description":"Make Ranger running in a floating window to communicate with Neovim via RPC","created":"Mar 12, 2022 6:40","slug":"kevinhwang91-rnvimr","stars":451,"category":"File Explorer"},{"url":"https://github.com/kyazdani42/nvim-tree.lua","name":"kyazdani42/nvim-tree.lua","description":"A file explorer tree for neovim written in lua","created":"Mar 13, 2022 1:30","slug":"kyazdani42-nvim-tree-lua","stars":2040,"category":"File Explorer"}]},{"category":"Snippets","items":[{"url":"https://github.com/L3MON4D3/LuaSnip","name":"L3MON4D3/LuaSnip","description":"Snippet Engine for Neovim written in Lua.","created":"Mar 1, 2022 11:03 pm","slug":"l3mon4d3-luasnip","stars":692,"category":"Snippets"}]},{"category":"Browser Integration","items":[{"url":"https://github.com/lalitmee/browse.nvim","name":"lalitmee/browse.nvim","description":"browse for anything using your choice of method","created":"Mar 13, 2022 3:59","slug":"lalitmee-browse-nvim","stars":0,"category":"Browser Integration"}]},{"category":"Indent","items":[{"url":"https://github.com/lukas-reineke/indent-blankline.nvim","name":"lukas-reineke/indent-blankline.nvim","description":"Indent guides for Neovim","created":"Mar 17, 2022 4:03","slug":"lukas-reineke-indent-blankline-nvim","stars":1272,"category":"Indent"}]},{"category":"Formatting","items":[{"url":"https://github.com/lukas-reineke/lsp-format.nvim","name":"lukas-reineke/lsp-format.nvim","description":"A wrapper around Neovims native LSP formatting.","created":"Apr 15, 2022 2:56","slug":"lukas-reineke-lsp-format-nvim","stars":248,"category":"Formatting"}]},{"category":"Syntax","items":[{"url":"https://github.com/m-demare/hlargs.nvim","name":"m-demare/hlargs.nvim/","description":"Highlight arguments' definitions and usages, using Treesitter","created":"Mar 13, 2022 12:37","slug":"m-demare-hlargs-nvim-","stars":30,"category":"Syntax"}]},{"category":"Splits and Window","items":[{"url":"https://github.com/mrjones2014/smart-splits.nvim","name":"mrjones2014/smart-splits.nvim","description":"π§ Smart, directional Neovim split resizing and navigation. Think about resizing splits in terms of \"move the divider to the left/right/up/down\".","created":"Apr 01, 2022 2:06","slug":"mrjones2014-smart-splits-nvim","stars":83,"category":"Splits and Window"}]},{"category":"Completion","items":[{"url":"https://github.com/noib3/nvim-compleet","name":"noib3/nvim-compleet","description":":zap: An async autocompletion framework for Neovim","created":"Apr 15, 2022 4:11","slug":"noib3-nvim-compleet","stars":413,"category":"Completion"},{"url":"https://github.com/zbirenbaum/copilot-cmp","name":"zbirenbaum/copilot-cmp","description":"Lua plugin to turn github copilot into a cmp source","created":"Apr 15, 2022 3:59","slug":"zbirenbaum-copilot-cmp","stars":69,"category":"Completion"},{"url":"https://github.com/zbirenbaum/copilot.lua","name":"zbirenbaum/copilot.lua","description":"Lua plugin for starting and interacting with github copilot","created":"Apr 15, 2022 3:59","slug":"zbirenbaum-copilot-lua","stars":100,"category":"Completion"}]},{"category":"Package Managers","items":[{"url":"https://github.com/NTBBloodbath/cheovim","name":"NTBBloodbath/cheovim","description":"Neovim configuration switcher written in Lua. Inspired by chemacs.","created":"Mar 1, 2022 4:02 pm","slug":"ntbbloodbath-cheovim","stars":145,"category":"Package Managers"},{"url":"https://github.com/savq/paq-nvim","name":"savq/paq-nvim","description":"π Neovim package manager","created":"Mar 1, 2022 4:02 pm","slug":"savq-paq-nvim","stars":408,"category":"Package Managers"},{"url":"https://github.com/wbthomason/packer.nvim","name":"wbthomason/packer.nvim","description":"A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config","created":"Mar 1, 2022 2:52 pm","slug":"wbthomason-packer-nvim","stars":2321,"category":"Package Managers"}]},{"category":"Game","items":[{"url":"https://github.com/ThePrimeagen/vim-be-good","name":"ThePrimeagen/vim-be-good","description":"vim-be-good is a nvim plugin designed to make you better at Vim Movements. ","created":"Mar 13, 2022 1:19","slug":"theprimeagen-vim-be-good","stars":619,"category":"Game"}]}],"pluginData":{"url":"https://github.com/noib3/nvim-cokeline","name":"noib3/nvim-cokeline","description":":nose: A Neovim bufferline for people with addictive personalities","created":"Mar 02, 2022 6:22","slug":"noib3-nvim-cokeline","stars":169,"content":"\n"},"readMe":"
The goal of this plugin is not to be an opinionated bufferline with (more or\nless) limited customization options. Rather, it tries to provide a general\nframework allowing you to build your ideal bufferline, whatever that\nmight look like.
\n
nvim-cokeline aims to be the most customizable bufferline plugin around. If\nyou have an idea in mind of what your bufferline should look like, you should\nbe able to make it look that way. If you can't, open an issue and we'll try to\nmake it happen!
Here's a (very limited) showcase of what it can be configured to look like\n(check out Example configs for more\nexamples):
\nlocal get_hex = require('cokeline/utils').get_hex\n\nrequire('cokeline').setup({\n default_hl = {\n fg = function(buffer)\n return\n buffer.is_focused\n and get_hex('ColorColumn', 'bg')\n or get_hex('Normal', 'fg')\n end,\n bg = function(buffer)\n return\n buffer.is_focused\n and get_hex('Normal', 'fg')\n or get_hex('ColorColumn', 'bg')\n end,\n },\n\n components = {\n {\n text = function(buffer) return ' ' .. buffer.devicon.icon end,\n fg = function(buffer) return buffer.devicon.color end,\n },\n {\n text = function(buffer) return buffer.unique_prefix end,\n fg = get_hex('Comment', 'fg'),\n style = 'italic',\n },\n {\n text = function(buffer) return buffer.filename .. ' ' end,\n style = function(buffer)\n if buffer.is_hovered and not buffer.is_focused then\n return 'underline'\n\tend\n end\n },\n {\n text = 'ο',\n on_click = function(_, _, _, _, buffer)\n\tbuffer:delete()\n end\n },\n {\n text = ' ',\n }\n },\n})\n\n
local get_hex = require('cokeline/utils').get_hex\n\nlocal green = vim.g.terminal_color_2\nlocal yellow = vim.g.terminal_color_3\n\nrequire('cokeline').setup({\n default_hl = {\n fg = function(buffer)\n return\n buffer.is_focused\n and get_hex('Normal', 'fg')\n or get_hex('Comment', 'fg')\n end,\n bg = get_hex('ColorColumn', 'bg'),\n },\n\n components = {\n {\n text = 'ο½',\n fg = function(buffer)\n return\n buffer.is_modified and yellow or green\n end\n },\n {\n text = function(buffer) return buffer.devicon.icon .. ' ' end,\n fg = function(buffer) return buffer.devicon.color end,\n },\n {\n text = function(buffer) return buffer.index .. ': ' end,\n },\n {\n text = function(buffer) return buffer.unique_prefix end,\n fg = get_hex('Comment', 'fg'),\n style = 'italic',\n },\n {\n text = function(buffer) return buffer.filename .. ' ' end,\n style = function(buffer) return buffer.is_focused and 'bold' or nil end,\n },\n {\n text = ' ',\n },\n },\n})\n\n
local get_hex = require('cokeline/utils').get_hex\n\nrequire('cokeline').setup({\n default_hl = {\n fg = function(buffer)\n return\n buffer.is_focused\n and get_hex('Normal', 'fg')\n or get_hex('Comment', 'fg')\n end,\n bg = 'NONE',\n },\n\n components = {\n {\n text = function(buffer) return (buffer.index ~= 1) and 'β' or '' end,\n fg = get_hex('Normal', 'fg')\n },\n {\n text = function(buffer) return ' ' .. buffer.devicon.icon end,\n fg = function(buffer) return buffer.devicon.color end,\n },\n {\n text = function(buffer) return buffer.filename .. ' ' end,\n style = function(buffer) return buffer.is_focused and 'bold' or nil end,\n },\n {\n text = 'ο',\n on_click = function(buffer)\n buffer:delete()\n end\n },\n {\n text = ' ',\n },\n },\n})\n\n
Even when you have a lot of buffers open, nvim-cokeline is rendered to always\nkeep the focused buffer visible and in the middle of the bufferline. Also, if a\nbuffer doesn't fit entirely we still try to include as much of it as possible\nbefore cutting off the rest.

If a buffer has an LSP client attached to it, you can configure the style of a\ncomponent to change based on how many errors, warnings, infos and hints are\nreported by the LSP.
\n
You can focus and close any buffer by typing its pick_letter. Letters are\nassigned by filename by default (e.g. foo.txt gets the letter f), and by\nkeyboard reachability if the letter is already assigned to another buffer.
local is_picking_focus = require('cokeline/mappings').is_picking_focus\nlocal is_picking_close = require('cokeline/mappings').is_picking_close\nlocal get_hex = require('cokeline/utils').get_hex\n\nlocal red = vim.g.terminal_color_1\nlocal yellow = vim.g.terminal_color_3\n\nrequire('cokeline').setup({\n default_hl = {\n focused = function(buffer)\n return\n buffer.is_focused\n and get_hex('Normal', 'fg')\n or get_hex('Comment', 'fg')\n end,\n bg = get_hex('ColorColumn', 'bg'),\n },\n\n components = {\n {\n text = function(buffer) return (buffer.index ~= 1) and 'β' or '' end,\n },\n {\n text = ' ',\n },\n {\n text = function(buffer)\n return\n (is_picking_focus() or is_picking_close())\n and buffer.pick_letter .. ' '\n or buffer.devicon.icon\n end,\n fg = function(buffer)\n return\n (is_picking_focus() and yellow)\n or (is_picking_close() and red)\n or buffer.devicon.color\n end,\n style = function(_)\n return\n (is_picking_focus() or is_picking_close())\n and 'italic,bold'\n or nil\n end,\n },\n {\n text = ' ',\n },\n {\n text = function(buffer) return buffer.filename .. ' ' end,\n style = function(buffer) return buffer.is_focused and 'bold' or nil end,\n },\n {\n text = 'ο',\n on_click = function(buffer)\n buffer:delete()\n end,\n },\n {\n text = ' ',\n },\n },\n})\n\n
You can add a left sidebar to integrate nicely with file explorer plugins like\nnvim-tree.lua,\nCHADTree or\nNERDTree.
\nlocal get_hex = require('cokeline/utils').get_hex\n\nlocal yellow = vim.g.terminal_color_3\n\nrequire('cokeline').setup({\n default_hl = {\n focused = function(buffer)\n return\n buffer.is_focused\n and get_hex('Normal', 'fg')\n or get_hex('Comment', 'fg')\n end,\n bg = get_hex('ColorColumn', 'bg'),\n },\n\n sidebar = {\n filetype = 'NvimTree',\n components = {\n {\n text = ' NvimTree',\n fg = yellow,\n bg = get_hex('NvimTreeNormal', 'bg'),\n style = 'bold',\n },\n }\n },\n\n components = {\n {\n text = function(buffer) return (buffer.index ~= 1) and 'β' or '' end,\n },\n {\n text = ' ',\n },\n {\n text = function(buffer)\n return buffer.devicon.icon\n end,\n fg = function(buffer)\n return buffer.devicon.color\n end,\n },\n {\n text = ' ',\n },\n {\n text = function(buffer) return buffer.filename .. ' ' end,\n style = function(buffer)\n return buffer.is_focused and 'bold' or nil\n end,\n },\n {\n text = 'ο',\n on_click = function(buffer)\n buffer:delete()\n end,\n },\n {\n text = ' ',\n },\n },\n})\n\n
When files with the same filename belonging to different directories are opened\nsimultaneously, you can include a unique filetree prefix to distinguish between\nthem:
\n
Left click on a buffer to focus it, and right click to delete it. Alternatively, define custom click handlers for each component that override the default behavior.
\n
Each component has access to an is_hovered property, and can be given custom on_mouse_enter and on_mouse_leave handlers, allowing for implementations of close buttons, diagnostic previews, and more complex funcionality.


require(\"cokeline.history\"):last():focus()\n\nIf you have an idea or feature request, don't hesitate to open an issue!
\nThe two main requirements are Neovim 0.5+ and the termguicolors option to be\nset. If you want to display devicons in your bufferline you'll also need the\nkyazdani42/nvim-web-devicons\nplugin and a patched font (see Nerd Fonts).
As of v0.4.0, nvim-lua/plenary.nvim is required as well.
\n{\n \"willothy/nvim-cokeline\",\n dependencies = {\n \"nvim-lua/plenary.nvim\", -- Required for v0.4.0+\n \"kyazdani42/nvim-web-devicons\", -- If you want devicons\n },\n config = true\n}\n\nvim.opt.termguicolors = true\n\nrequire('packer').startup(function()\n -- ...\n use({\n 'willothy/nvim-cokeline',\n requires = {\n \"nvim-lua/plenary.nvim\", -- Required for v0.4.0+\n \"kyazdani42/nvim-web-devicons\", -- If you want devicons\n },\n config = function()\n require(\"cokeline\").setup()\n end\n })\n -- ...\nend)\n\nIf your config is still written in Vimscript and you use\nvim-plug:
\ncall plug#begin('~/.config/nvim/plugged')\n \" ...\n Plug 'nvim-lua/plenary.nvim' \" Required for v0.4.0+\n Plug 'kyazdani42/nvim-web-devicons' \" If you want devicons\n Plug 'willothy/nvim-cokeline'\n \" ...\ncall plug#end()\n\nset termguicolors\nlua << EOF\n require('cokeline').setup()\nEOF\n\n\n\nnote\nCheck out the wiki for more details and API documentation.
\n
All the configuration is done by changing the contents of the Lua table passed to\nthe setup function.
The valid keys are:
\nrequire('cokeline').setup({\n -- Only show the bufferline when there are at least this many visible buffers.\n -- default: `1`.\n show_if_buffers_are_at_least = int,\n\n buffers = {\n -- A function to filter out unwanted buffers. Takes a buffer table as a\n -- parameter (see the following section for more infos) and has to return\n -- either `true` or `false`.\n -- default: `false`.\n filter_valid = function(buffer) -> true | false,\n\n -- A looser version of `filter_valid`, use this function if you still\n -- want the `cokeline-{switch,focus}-{prev,next}` mappings to work for\n -- these buffers without displaying them in your bufferline.\n -- default: `false`.\n filter_visible = function(buffer) -> true | false,\n\n -- Which buffer to focus when a buffer is deleted, `prev` focuses the\n -- buffer to the left of the deleted one while `next` focuses the one the\n -- right.\n -- default: 'next'.\n focus_on_delete = 'prev' | 'next',\n\n -- If set to `last` new buffers are added to the end of the bufferline,\n -- if `next` they are added next to the current buffer.\n -- if set to `directory` buffers are sorted by their full path.\n -- if set to `number` buffers are sorted by bufnr, as in default Neovim\n -- default: 'last'.\n new_buffers_position = 'last' | 'next' | 'directory' | 'number' | function(buffer_a, buffer_b) -> true | false,\n\n -- If true, right clicking a buffer will close it\n -- The close button will still work normally\n -- Default: true\n delete_on_right_click = true | false,\n },\n\n mappings = {\n -- Controls what happens when the first (last) buffer is focused and you\n -- try to focus/switch the previous (next) buffer. If `true` the last\n -- (first) buffers gets focused/switched, if `false` nothing happens.\n -- default: `true`.\n cycle_prev_next = true | false,\n\n -- Disables mouse mappings\n -- default: `false`.\n disable_mouse = true | false,\n },\n\n -- Maintains a history of focused buffers using a ringbuffer\n history = {\n enabled = true | false (default: true)\n size = int (default: 2)\n },\n\n rendering = {\n -- The maximum number of characters a rendered buffer is allowed to take\n -- up. The buffer will be truncated if its width is bigger than this\n -- value.\n -- default: `999`.\n max_buffer_width = int,\n },\n\n pick = {\n -- Whether to use the filename's first letter first before\n -- picking a letter from the valid letters list in order.\n -- default: `true`\n use_filename = true | false,\n\n -- The list of letters that are valid as pick letters. Sorted by\n -- keyboard reachability by default, but may require tweaking for\n -- non-QWERTY keyboard layouts.\n -- default: `'asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERTYQP'`\n letters = 'string',\n },\n\n -- The default highlight group values.\n -- The `fg` and `bg` keys are either colors in hexadecimal format or\n -- functions taking a `buffer` parameter and returning a color in\n -- hexadecimal format. Similarly, the `style` key is either a string\n -- containing a comma separated list of items in `:h attr-list` or a\n -- function returning one.\n default_hl = {\n -- default: `ColorColumn`'s background color for focused buffers,\n -- `Normal`'s foreground color for unfocused ones.\n fg = ('hlgroup' | '#rrggbb') | function(buffer) -> ('#rrggbb' | 'hlgroup'),\n\n -- default: `Normal`'s foreground color for focused buffers,\n -- `ColorColumn`'s background color for unfocused ones.\n -- default: `Normal`'s foreground color.\n bg = ('hlgroup' | '#rrggbb') | function(buffer) -> ('hlgroup' | '#rrggbb'),\n\n -- default: `'NONE'`.\n style = 'attr1,attr2,...' | function(buffer) -> 'attr1,attr2,...',\n },\n\n -- The highlight group used to fill the tabline space\n fill_hl = 'TabLineFill',\n\n -- A list of components to be rendered for each buffer. Check out the section\n -- below explaining what this value can be set to.\n -- default: see `/lua/cokeline/defaults.lua`\n components = {..},\n\n -- Custom areas can be displayed on the right hand side of the bufferline.\n -- They act identically to buffer components, except their methods don't take a Buffer object.\n -- If you want a rhs component to be stateful, you can wrap it in a closure containing state.\n rhs = {..},\n\n -- Tabpages can be displayed on either the left or right of the bufferline.\n -- They act the same as other components, except they are passed TabPage objects instead of\n -- buffer objects.\n tabs = {\n placement = \"left\" | \"right\",\n components = {..}\n },\n\n -- Left sidebar to integrate nicely with file explorer plugins.\n -- This is a table containing a `filetype` key and a list of `components` to\n -- be rendered in the sidebar.\n -- The last component will be automatically space padded if necessary\n -- to ensure the sidebar and the window below it have the same width.\n sidebar = {\n filetype = '<filetype>',\n components = {..},\n },\n})\n\nfunction(buffer)?Some of the configuration options can be functions that take a Buffer as a\nsingle parameter. This is useful as it allows users to set the values of\ncomponents dynamically based on the buffer that component is being rendered\nfor.
The Buffer type is just a Lua table with the following keys:
Buffer = {\n -- The buffer's order in the bufferline (1 for the first buffer, 2 for the\n -- second one, etc.).\n index = int,\n\n -- The buffer's internal number as reported by `:ls`.\n number = int,\n\n is_focused = true | false,\n\n is_modified = true | false,\n\n is_readonly = true | false,\n\n -- The buffer is the first visible buffer in the tab bar\n is_first = true | false,\n\n -- The buffer is the last visible buffer in the tab bar\n is_last = true | false,\n\n -- The mouse is hovering over the current component in the buffer\n -- This is a special variable in that it will only be true for the hovered *component*\n -- on render. This is to allow components to respond to hover events individually without managing\n -- component state.\n is_hovered = true | false\n\n -- The mouse is hovering over the buffer (true for all components)\n buf_hovered = true | false\n\n -- The buffer's type as reported by `:echo &buftype`.\n type = 'string',\n\n -- The buffer's filetype as reported by `:echo &filetype`.\n filetype = 'string',\n\n -- The buffer's full path.\n path = 'string',\n\n -- The buffer's filename.\n filename = 'string',\n\n -- A unique prefix used to distinguish buffers with the same filename\n -- stored in different directories. For example, if we have two files\n -- `bar/foo.md` and `baz/foo.md`, then the first will have `bar/` as its\n -- unique prefix and the second one will have `baz/`.\n unique_prefix = 'string',\n\n -- The letter that is displayed when picking a buffer to either focus or\n -- close it.\n pick_letter = 'char',\n\n -- This needs the `kyazdani42/nvim-web-devicons` plugin to be installed.\n devicon = {\n -- An icon representing the buffer's filetype.\n icon = 'string',\n\n -- The colors of the devicon in hexadecimal format (useful to be passed\n -- to a component's `fg` field (see the `Components` section).\n color = '#rrggbb',\n },\n\n -- The values in this table are the ones reported by Neovim's built in\n -- LSP interface.\n diagnostics = {\n errors = int,\n warnings = int,\n infos = int,\n hints = int,\n },\n}\n\nIt also has methods that can be used in component event handlers:
\n---@param self Buffer\n---Deletes the buffer\nfunction Buffer:delete()\n\n---@param self Buffer\n---Focuses the buffer\nfunction Buffer:focus()\n\n---@param self Buffer\n---@return number\n---Returns the number of lines in the buffer\nfunction Buffer:lines()\n\n---@param self Buffer\n---@return string[]\n---Returns the buffer's lines\nfunction Buffer:text()\n\n---@param buf Buffer\n---@return boolean\n---Returns true if the buffer is valid\nfunction Buffer:is_valid()\n\nTabPages?Each method on a tab component is passed a TabPage object as an argument.
TabPage, like Buffer, is simply a Lua table with some relevant data attached.
TabPage = {\n -- The tabpage number, as reported by `nvim_list_tabpages`\n number = integer,\n -- A list of Window objects contained in the TabPage (see wiki for more info)\n windows = Window[],\n -- The currently focused window in the TabPage\n focused = Window,\n -- True if the TabPage is the current TabPage\n is_active = boolean,\n -- True if the TabPage is first in the list\n is_first = boolean,\n -- True if the TabPage is last in the list\n is_last = boolean\n}\n\ncomponents?You can configure what each buffer in your bufferline will be composed of by\npassing a list of components to the setup function.
For example, let's imagine we want to construct a very minimal bufferline\nwhere the only things we're displaying for each buffer are its index, its\nfilename and a close button.
\nThen in our setup function we'd have:
require('cokeline').setup({\n -- ...\n\n components = {\n {\n text = function(buffer) return ' ' .. buffer.index end,\n },\n {\n text = function(buffer) return ' ' .. buffer.filename .. ' ' end,\n },\n {\n text = 'σ°
',\n on_click = function(buffer)\n buffer:delete()\n end\n },\n {\n text = ' ',\n }\n }\n}\n\nin this case every buffer would be composed of four components: the first\ndisplaying a space followed by the buffer index, the second one the filename\npadded by a space on each side, then a close button that allows us to\n:bdelete the buffer by left-clicking on it, and finally an extra space.
This way of dividing each buffer into distinct components, combined with the\nability to define every component's text and color depending on some property\nof the buffer we're rendering, allows for great customizability.
\nEvery component passed to the components list has to be a table of the form:
{\n text = 'string' | function(buffer) -> 'string',\n\n -- The foreground, backgrond and style of the component. `style` is a\n -- comma-separated string of values defined in `:h attr-list`.\n fg = '#rrggbb' | function(buffer) -> '#rrggbb',\n bg = '#rrggbb' | function(buffer) -> '#rrggbb',\n style = 'attr1,attr2,...' | function(buffer) -> 'attr1,attr2,...',\n\n -- Or, alternatively, the name of the highlight group\n highlight = 'string' | function(buffer) -> string | nil,\n\n -- If `true` the buffer will be deleted when this component is\n -- left-clicked (usually used to implement close buttons, overrides `on_click`).\n -- deprecated, it is recommended to use the Buffer:delete() method in an on_click event\n -- to implement close buttons instead.\n delete_buffer_on_left_click = true | false,\n\n -- Handles click event for a component\n -- If not set, component will have the default click behavior\n -- buffer is a Buffer object, not a bufnr\n on_click = nil | function(idx, clicks, buttons, modifiers, buffer)\n\n -- Called on a component when hovered\n on_mouse_enter = nil | function(buffer, mouse_col)\n\n -- Called on a component when unhovered\n on_mouse_leave = nil | function(buffer)\n\n truncation = {\n -- default: index of the component in the `components` table (1 for the\n -- first component, 2 for the second, etc.).\n priority = int,\n\n -- default: `right`.\n direction = 'left' | 'middle' | 'right',\n },\n}\n\nthe text key is the only one that has to be set, all the others are optional\nand can be omitted.
The truncation table controls what happens when a buffer is too long to be\ndisplayed in its entirety.
More specifically, if a buffer's width (given by the sum of the widths of all\nits components) is bigger than the rendering.max_buffer_width config option,\nthe buffer will be truncated.
The default behaviour is truncate the buffer by dropping components from right\nto left, with the text of the last component that's included also being\nshortened from right to left. This can be modified by changing the values of\nthe truncation.priority and truncation.direction keys.
The truncation.priority controls the order in which components are dropped:\nthe first component to be dropped will be the one with the lowest priority. If\nthat's still not enough to bring the width of the buffer within the\nrendering.max_buffer_width limit, the component with the second lowest\npriority will be dropped, and so on. Note that a higher priority means a\nsmaller integer value: a component with a priority of 5 will be dropped\nafter a component with a priority of 6, even though 6 > 5.
The truncation.direction key simply controls from which direction a component\nis shortened. For example, you might want to set the truncation.direction of\na component displaying a filename to 'middle' or 'left', so that if\nthe filename has to be shortened you'll still be able to see its extension,\nlike in the following example (where it's set to 'left'):

history?The History keeps track of the buffers you access using a ringbuffer, and provides\nan API for accessing Buffer objects from the history.
\nYou can access the history using require(\"cokeline.history\"), or through the global _G.cokeline.history.
The History object provides these methods:
---Adds a Buffer object to the history\nfunction History:push(bufnr: int)\nend\n\n---Removes and returns the oldest Buffer object in the history\nfunction History:pop(): Buffer | nil\nend\n\n---Returns a list of Buffer objects in the history,\n---ordered from oldest to newest\nfunction History:list(): Buffer[]\nend\n\n---Returns an iterator of Buffer objects in the history,\n---ordered from oldest to newest\nfunction History:iter(): fun(): Buffer | nil\nend\n\n---Get a Buffer object by history index\nfunction History:get(idx: int): Buffer | nil\nend\n\n---Get a Buffer object representing the last-accessed buffer (before the current one)\nfunction History:last(): Buffer | nil\nend\n\n---Returns true if the history is empty\nfunction History:is_empty(): boolean\nend\n\n---Returns the maximum number of buffers that can be stored in the history\nfunction History:capacity(): int\nend\n\n---Returns true if the history contains the given buffer\nfunction History:contains(bufnr: int): bool\nend\n\n---Returns the number of buffers in the history\nfunction History:len(): int\nend\n\nYou can use the mappings module to create mappings from Lua:
vim.keymap.set(\"n\", \"<leader>bp\", function()\n require('cokeline.mappings').pick(\"focus\")\nend, { desc = \"Pick a buffer to focus\" })\n\n-- etc....\n\nAlternatively, we expose the following <Plug> mappings which can be used as the right hand\nside of other mappings:
-- Focus the previous/next buffer\n<Plug>(cokeline-focus-prev)\n<Plug>(cokeline-focus-next)\n\n-- Switch the position of the current buffer with the previous/next buffer.\n<Plug>(cokeline-switch-prev)\n<Plug>(cokeline-switch-next)\n\n-- Focuses the buffer with index `i`.\n<Plug>(cokeline-focus-i)\n\n-- Switches the position of the current buffer with the buffer of index `i`.\n<Plug>(cokeline-switch-i)\n\n-- Focus a buffer by its `pick_letter`.\n<Plug>(cokeline-pick-focus)\n\n-- Close a buffer by its `pick_letter`.\n<Plug>(cokeline-pick-close)\n\nA possible configuration could be:
\nlocal map = vim.api.nvim_set_keymap\n\nmap('n', '<S-Tab>', '<Plug>(cokeline-focus-prev)', { silent = true })\nmap('n', '<Tab>', '<Plug>(cokeline-focus-next)', { silent = true })\nmap('n', '<Leader>p', '<Plug>(cokeline-switch-prev)', { silent = true })\nmap('n', '<Leader>n', '<Plug>(cokeline-switch-next)', { silent = true })\n\nfor i = 1,9 do\n map('n', ('<F%s>'):format(i), ('<Plug>(cokeline-focus-%s)'):format(i), { silent = true })\n map('n', ('<Leader>%s'):format(i), ('<Plug>(cokeline-switch-%s)'):format(i), { silent = true })\nend\n\n"},"__N_SSG":true}