2022-02-26 19:28:55 +01:00
|
|
|
local wk = require("which-key")
|
|
|
|
|
2022-02-26 19:45:19 +01:00
|
|
|
local motions = {
|
|
|
|
["]m"] = "Next method start",
|
|
|
|
["]M"] = "Next method end",
|
2022-02-26 19:52:40 +01:00
|
|
|
["]S"] = "Next statement start",
|
2022-02-26 19:45:19 +01:00
|
|
|
["]]"] = "Next class start",
|
|
|
|
["]["] = "Next class end",
|
|
|
|
["[m"] = "Previous method start",
|
|
|
|
["[M"] = "Previous method end",
|
2022-02-26 19:52:40 +01:00
|
|
|
["[S"] = "Previous statement start",
|
2022-02-26 19:45:19 +01:00
|
|
|
["[["] = "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:52:40 +01:00
|
|
|
["aS"] = "a statement",
|
2022-02-26 19:28:55 +01:00
|
|
|
}
|
|
|
|
|
2022-02-26 19:45:19 +01:00
|
|
|
wk.register(motions, { mode = "n" })
|
|
|
|
wk.register(objects, { mode = "o" })
|