Auto commit: 2024-11-09 19:25:02
This commit is contained in:
parent
76c74c5d23
commit
6141f5caea
1 changed files with 10 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
local function mapPrefix(prefix, enabled)
|
local function mapPrefix(prefix, enabled)
|
||||||
|
-- create the WK group for the prefix
|
||||||
require("which-key").add({
|
require("which-key").add({
|
||||||
{ prefix, group = "+NoNeckPain" },
|
{ prefix, group = "+NoNeckPain" },
|
||||||
})
|
})
|
||||||
local M = {
|
-- define the suffix mappings
|
||||||
|
local mappings = {
|
||||||
toggle = "p",
|
toggle = "p",
|
||||||
toggleLeftSide = "ql",
|
toggleLeftSide = "ql",
|
||||||
toggleRightSide = "qr",
|
toggleRightSide = "qr",
|
||||||
|
@ -10,8 +12,13 @@ local function mapPrefix(prefix, enabled)
|
||||||
widthDown = "-",
|
widthDown = "-",
|
||||||
scratchPad = "s",
|
scratchPad = "s",
|
||||||
}
|
}
|
||||||
|
-- concat prefix and suffix
|
||||||
return M
|
for action, suffix in pairs(mappings) do
|
||||||
|
mappings[action] = prefix .. suffix
|
||||||
|
end
|
||||||
|
-- include the enabled flag
|
||||||
|
mappings.enabled = enabled
|
||||||
|
return mappings
|
||||||
end
|
end
|
||||||
-- Ok, this plugin is really awesome!
|
-- Ok, this plugin is really awesome!
|
||||||
-- And everyone should know about it -- game changer!!!
|
-- And everyone should know about it -- game changer!!!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue