2022-02-26 19:28:55 +01:00
|
|
|
lua << EOF
|
|
|
|
local wk = require("which-key")
|
|
|
|
|
2022-02-26 19:45:19 +01:00
|
|
|
local motions = {
|
|
|
|
["]m"] = "Next method start",
|
|
|
|
["]M"] = "Next method end",
|
|
|
|
["]]"] = "Next class start",
|
|
|
|
["]["] = "Next class end",
|
|
|
|
["[m"] = "Previous method start",
|
|
|
|
["[M"] = "Previous method end",
|
|
|
|
["[["] = "Previous class start",
|
|
|
|
["[]"] = "Previous class end",
|
|
|
|
}
|
|
|
|
|
|
|
|
local objects = {
|
2022-02-26 19:28:55 +01:00
|
|
|
["aa"] = "a parameter",
|
|
|
|
["ia"] = "inner parameter",
|
|
|
|
["ab"] = "a block",
|
|
|
|
["ib"] = "inner block",
|
|
|
|
["ac"] = "a class",
|
|
|
|
["ic"] = "inner class",
|
|
|
|
["af"] = "a function",
|
|
|
|
["if"] = "inner function",
|
|
|
|
["ak"] = "a comment",
|
|
|
|
}
|
|
|
|
|
2022-02-26 19:45:19 +01:00
|
|
|
wk.register(motions, { mode = "n" })
|
|
|
|
wk.register(objects, { mode = "o" })
|
2022-02-26 19:28:55 +01:00
|
|
|
EOF
|