Skip to content

Commit

Permalink
refactor: make status/finder mapping optional
Browse files Browse the repository at this point in the history
  • Loading branch information
PriceHiller committed Aug 3, 2023
1 parent 710bde3 commit bca4ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neogit/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ end
---@alias NeogitConfigMappingsStatus "Close" | "InitRepo" | "Depth1" | "Depth2" | "Depth3" | "Depth4" | "Toggle" | "Discard" | "Stage" | "StageUnstaged" | "StageAll" | "Unstage" | "UnstageStaged" | "DiffAtFile" | "CommandHistory" | "Console" | "RefreshBuffer" | "GoToFile" | "VSplitOpen" | "SplitOpen" | "TabOpen" | "HelpPopup" | "DiffPopup" | "PullPopup" | "RebasePopup" | "MergePopup" | "PushPopup" | "CommitPopup" | "LogPopup" | "RevertPopup" | "StashPopup" | "CherryPickPopup" | "BranchPopup" | "FetchPopup" | "ResetPopup" | "RemotePopup" | "GoToPreviousHunkHeader" | "GoToNextHunkHeader"

---@class NeogitConfigMappings Consult the config file or documentation for values
---@field finder { [string]: NeogitConfigMappingsFinder } A dictionary that uses finder commands to set multiple keybinds
---@field status { [string]: NeogitConfigMappingsStatus } A dictionary that uses status commands to set a single keybind
---@field finder? { [string]: NeogitConfigMappingsFinder } A dictionary that uses finder commands to set multiple keybinds
---@field status? { [string]: NeogitConfigMappingsStatus } A dictionary that uses status commands to set a single keybind

---@class NeogitConfig Neogit configuration settings
---@field disable_hint? boolean Remove the top hint in the Status buffer
Expand Down

0 comments on commit bca4ee8

Please sign in to comment.