wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 263 forks source link

support multiple modes for same key of lazyload #1170

Open XXiaoA opened 1 year ago

XXiaoA commented 1 year ago

Describe the feature

According to my test, we must do the duplicated things like this:

use({
    "phaazon/hop.nvim",
    keys = {
        { "o", "t" },
        { "o", "T" },
        { "o", "f" },
        { "o", "F" },
        { "x", "t" },
        { "x", "T" },
        { "x", "f" },
        { "x", "F" },
        { "n", "t" },
        { "n", "T" },
        { "n", "f" },
        { "n", "F" },
    },
})

I hope we can make it easier like this:

keys = {
        {  { "o", "x", "n"  }, "t" },
    }

I've search other issues, discussions and docs but dont find some means to do it. Hope I didn't ignore something. :smile:

lewis6991 commented 1 year ago

Relates to #1063

XXiaoA commented 1 year ago

ok, waiting for merging the PR