Skip to content

Sc4ramouche/lists.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lists.nvim

The idea is to be able to display any sort of a list if you need a reminder. I use this to remind myself the purpose of conventional commits and some of the vim commands I tend to forget.

Originally I explored an easier way to display those lists with built-in messages, but this protocol doesn't allow to conveniently display multi-line strings. Thus I tried to implement the same idea as a plugin, which allowed me to use more pleasant UI and get some lua experience along the way.

Installation

Using packer:

use { 'Sc4ramouche/lists.nvim', requires = 'nvim-lua/plenary.nvim' }

Example usage

local vm_contents = {
    ":so %   – source current buffer",
    "C-w v   – vertical split",
    "zz      – center view",
    "{ and } – move up or down 1 paragaph",
    "va{     – find next block of braces",
}
vim.keymap.set('n', '<leader>lv', function()
    require('lists').toggle_menu({ title = "Vim Motions", contents = vm_contents })
end)

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published