From a32cd077fbd0a75f2d94c8c45959f2280e8d77a1 Mon Sep 17 00:00:00 2001 From: cg8936 Date: Wed, 5 Feb 2025 13:57:24 -0500 Subject: [PATCH] Adding resize on key maps --- lazigitconfig.log | 296 +++++++++++++++++++++++++++++++++++ lua/cargdev/core/keymaps.lua | 7 + 2 files changed, 303 insertions(+) create mode 100644 lazigitconfig.log diff --git a/lazigitconfig.log b/lazigitconfig.log new file mode 100644 index 0000000..4879388 --- /dev/null +++ b/lazigitconfig.log @@ -0,0 +1,296 @@ +gui: + authorColors: {} + branchColors: {} + branchColorPatterns: {} + scrollHeight: 2 + scrollPastBottom: true + scrollOffMargin: 2 + scrollOffBehavior: margin + mouseEvents: true + skipDiscardChangeWarning: false + skipStashWarning: false + skipNoStagedFilesWarning: false + skipRewordInEditorWarning: false + sidePanelWidth: 0.3333 + expandFocusedSidePanel: false + expandedSidePanelWeight: 2 + mainPanelSplitMode: flexible + enlargedSideViewLocation: left + wrapLinesInStagingView: true + language: auto + timeFormat: 02 Jan 06 + shortTimeFormat: 3:04PM + theme: + activeBorderColor: + - green + - bold + inactiveBorderColor: + - default + searchingActiveBorderColor: + - cyan + - bold + optionsTextColor: + - blue + selectedLineBgColor: + - blue + inactiveViewSelectedLineBgColor: + - bold + cherryPickedCommitFgColor: + - blue + cherryPickedCommitBgColor: + - cyan + markedBaseCommitFgColor: + - blue + markedBaseCommitBgColor: + - yellow + unstagedChangesColor: + - red + defaultFgColor: + - default + commitLength: + show: true + showListFooter: true + showFileTree: true + showNumstatInFilesView: false + showRandomTip: true + showCommandLog: true + showBottomLine: true + showPanelJumps: true + showIcons: false + nerdFontsVersion: "" + showFileIcons: true + commitAuthorShortLength: 2 + commitAuthorLongLength: 17 + commitHashLength: 8 + showBranchCommitHash: false + showDivergenceFromBaseBranch: none + commandLogSize: 8 + splitDiff: auto + screenMode: normal + border: rounded + animateExplosion: true + portraitMode: auto + filterMode: substring + spinner: + frames: + - '|' + - / + - '-' + - \ + rate: 50 + statusPanelView: dashboard + switchToFilesAfterStashPop: true + switchToFilesAfterStashApply: true + switchTabsWithPanelJumpKeys: false +git: + paging: + colorArg: always + pager: "" + useConfig: false + externalDiffCommand: "" + commit: + signOff: false + autoWrapCommitMessage: true + autoWrapWidth: 72 + merging: + manualCommit: false + args: "" + squashMergeMessage: Squash merge {{selectedRef}} into {{currentBranch}} + mainBranches: + - master + - main + skipHookPrefix: WIP + autoFetch: true + autoRefresh: true + fetchAll: true + autoStageResolvedConflicts: true + branchLogCmd: git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} -- + allBranchesLogCmd: git log --graph --all --color=always --abbrev-commit --decorate --date=relative --pretty=medium + allBranchesLogCmds: [] + overrideGpg: false + disableForcePushing: false + commitPrefix: null + commitPrefixes: {} + branchPrefix: "" + parseEmoji: false + log: + order: topo-order + showGraph: always + showWholeGraph: false + truncateCopiedCommitHashesTo: 12 +update: + method: prompt + days: 14 +refresher: + refreshInterval: 10 + fetchInterval: 60 +confirmOnQuit: false +quitOnTopLevelReturn: false +disableStartupPopups: false +customCommands: [] +services: {} +notARepository: prompt +promptToReturnFromSubprocess: true +keybinding: + universal: + quit: q + quit-alt1: + return: + quitWithoutChangingDirectory: Q + togglePanel: + prevItem: + nextItem: + prevItem-alt: k + nextItem-alt: j + prevPage: ',' + nextPage: . + scrollLeft: H + scrollRight: L + gotoTop: < + gotoBottom: '>' + toggleRangeSelect: v + rangeSelectDown: + rangeSelectUp: + prevBlock: + nextBlock: + prevBlock-alt: h + nextBlock-alt: l + nextBlock-alt2: + prevBlock-alt2: + jumpToBlock: + - "1" + - "2" + - "3" + - "4" + - "5" + nextMatch: "n" + prevMatch: "N" + startSearch: / + optionMenu: + optionMenu-alt1: '?' + select: + goInto: + confirm: + confirmInEditor: + remove: d + new: "n" + edit: e + openFile: o + scrollUpMain: + scrollDownMain: + scrollUpMain-alt1: K + scrollDownMain-alt1: J + scrollUpMain-alt2: + scrollDownMain-alt2: + executeShellCommand: ':' + createRebaseOptionsMenu: m + pushFiles: P + pullFiles: p + refresh: R + createPatchOptionsMenu: + nextTab: ']' + prevTab: '[' + nextScreenMode: + + prevScreenMode: _ + undo: z + redo: + filteringMenu: + diffingMenu: W + diffingMenu-alt: + copyToClipboard: + openRecentRepos: + submitEditorText: + extrasMenu: '@' + toggleWhitespaceInDiffView: + increaseContextInDiffView: '}' + decreaseContextInDiffView: '{' + increaseRenameSimilarityThreshold: ) + decreaseRenameSimilarityThreshold: ( + openDiffTool: + status: + checkForUpdate: u + recentRepos: + allBranchesLogGraph: a + files: + commitChanges: c + commitChangesWithoutHook: w + amendLastCommit: A + commitChangesWithEditor: C + findBaseCommitForFixup: + confirmDiscard: x + ignoreFile: i + refreshFiles: r + stashAllChanges: s + viewStashOptions: S + toggleStagedAll: a + viewResetOptions: D + fetch: f + toggleTreeView: '`' + openMergeTool: M + openStatusFilter: + copyFileInfoToClipboard: "y" + collapseAll: '-' + expandAll: = + branches: + createPullRequest: o + viewPullRequestOptions: O + copyPullRequestURL: + checkoutBranchByName: c + forceCheckoutBranch: F + rebaseBranch: r + renameBranch: R + mergeIntoCurrentBranch: M + viewGitFlowOptions: i + fastForward: f + createTag: T + pushTag: P + setUpstream: u + fetchRemote: f + sortOrder: s + worktrees: + viewWorktreeOptions: w + commits: + squashDown: s + renameCommit: r + renameCommitWithEditor: R + viewResetOptions: g + markCommitAsFixup: f + createFixupCommit: F + squashAboveCommits: S + moveDownCommit: + moveUpCommit: + amendToCommit: A + resetCommitAuthor: a + pickCommit: p + revertCommit: t + cherryPickCopy: C + pasteCommits: V + markCommitAsBaseForRebase: B + tagCommit: T + checkoutCommit: + resetCherryPick: + copyCommitAttributeToClipboard: "y" + openLogMenu: + openInBrowser: o + viewBisectOptions: b + startInteractiveRebase: i + amendAttribute: + resetAuthor: a + setAuthor: A + addCoAuthor: c + stash: + popStash: g + renameStash: r + commitFiles: + checkoutCommitFile: c + main: + toggleSelectHunk: a + pickBothHunks: b + editSelectHunk: E + submodules: + init: i + update: u + bulkMenu: b + commitMessage: + commitMenu: + diff --git a/lua/cargdev/core/keymaps.lua b/lua/cargdev/core/keymaps.lua index a2cb19f..98c296a 100644 --- a/lua/cargdev/core/keymaps.lua +++ b/lua/cargdev/core/keymaps.lua @@ -58,3 +58,10 @@ keymap.set("n", "x", ":!node %", { desc = "Running current project u -- keymap.set("n", "", ":TmuxNavigateDown", { noremap = true, silent = true }) -- keymap.set("n", "", ":TmuxNavigateUp", { noremap = true, silent = true }) -- keymap.set("n", "", ":TmuxNavigateRight", { noremap = true, silent = true }) + +-- Resize splits using Ctrl + Arrow keys + +keymap.set("n", "", ":vertical resize -5", { noremap = true, silent = true }) +keymap.set("n", "", ":vertical resize +5", { noremap = true, silent = true }) +keymap.set("n", "", ":resize +5", { noremap = true, silent = true }) +keymap.set("n", "", ":resize -5", { noremap = true, silent = true })