From edb5ba1c9841da602f6623f2b39f0aa1d169c06a Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 9 Nov 2024 19:15:02 -0500 Subject: [PATCH] Auto commit: 2024-11-09 19:15:02 --- .config/nvim/lua/plugins/no-neck-pain.lua | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.config/nvim/lua/plugins/no-neck-pain.lua b/.config/nvim/lua/plugins/no-neck-pain.lua index 255d3aad..03f7630b 100644 --- a/.config/nvim/lua/plugins/no-neck-pain.lua +++ b/.config/nvim/lua/plugins/no-neck-pain.lua @@ -1,3 +1,31 @@ +local function mapPrefix(prefix, enabled) + local M = { + enabled = enabled, + toggle = "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 = "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 = "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 = "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 = "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 = "ns", + } + + return M +end -- Ok, this plugin is really awesome! -- And everyone should know about it -- game changer!!! return {