Auto commit: 2024-11-09 19:20:02
This commit is contained in:
parent
edb5ba1c98
commit
76c74c5d23
1 changed files with 13 additions and 28 deletions
|
@ -1,27 +1,14 @@
|
|||
local function mapPrefix(prefix, enabled)
|
||||
require("which-key").add({
|
||||
{ prefix, group = "+NoNeckPain" },
|
||||
})
|
||||
local M = {
|
||||
enabled = enabled,
|
||||
toggle = "<Leader>np",
|
||||
-- Sets a global mapping to Neovim, which allows you to toggle the left side buffer.
|
||||
-- When `false`, the mapping is not created.
|
||||
--- @type string
|
||||
toggleLeftSide = "<Leader>nql",
|
||||
-- Sets a global mapping to Neovim, which allows you to toggle the right side buffer.
|
||||
-- When `false`, the mapping is not created.
|
||||
--- @type string
|
||||
toggleRightSide = "<Leader>nqr",
|
||||
-- Sets a global mapping to Neovim, which allows you to increase the width (+5) of the main window.
|
||||
-- When `false`, the mapping is not created.
|
||||
--- @type string | { mapping: string, value: number }
|
||||
widthUp = "<Leader>n=",
|
||||
-- Sets a global mapping to Neovim, which allows you to decrease the width (-5) of the main window.
|
||||
-- When `false`, the mapping is not created.
|
||||
--- @type string | { mapping: string, value: number }
|
||||
widthDown = "<Leader>n-",
|
||||
-- Sets a global mapping to Neovim, which allows you to toggle the scratchPad feature.
|
||||
-- When `false`, the mapping is not created.
|
||||
--- @type string
|
||||
scratchPad = "<Leader>ns",
|
||||
toggle = "p",
|
||||
toggleLeftSide = "ql",
|
||||
toggleRightSide = "qr",
|
||||
widthUp = "=",
|
||||
widthDown = "-",
|
||||
scratchPad = "s",
|
||||
}
|
||||
|
||||
return M
|
||||
|
@ -32,14 +19,12 @@ return {
|
|||
"shortcuts/no-neck-pain.nvim",
|
||||
version = "*",
|
||||
opts = function()
|
||||
require("which-key").add({
|
||||
{ "<leader>n", group = "+NoNeckPain" },
|
||||
})
|
||||
return {
|
||||
width = 120,
|
||||
mappings = {
|
||||
enabled = true,
|
||||
},
|
||||
mappings = mapPrefix("<leader>N", true),
|
||||
-- mappings = {
|
||||
-- enabled = true,
|
||||
-- },
|
||||
autocmds = {
|
||||
enableOnVimEnter = true,
|
||||
skipEnteringNoNeckPainBuffer = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue