Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ require("tinygit").setup {
resetHunk = "<C-r>",
},
moveToNextHunkOnStagingToggle = false,
showFilePaths = false,

-- accepts the common telescope picker config
telescopeOpts = {
Expand Down
2 changes: 1 addition & 1 deletion lua/tinygit/commands/stage/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local function newFinder(hunks)
local h = _entry.value
local changeWithoutHunk = h.lnum == -1

local name = vim.fs.basename(h.relPath)
local name = conf.showFilePaths and h.relPath or vim.fs.basename(h.relPath)
local added = h.added > 0 and (" +" .. h.added) or ""
local del = h.removed > 0 and (" -" .. h.removed) or ""
local location = ""
Expand Down
1 change: 1 addition & 0 deletions lua/tinygit/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local defaultConfig = {
resetHunk = "<C-r>",
},
moveToNextHunkOnStagingToggle = false,
showFilePaths = false,

-- accepts the common telescope picker config
telescopeOpts = {
Expand Down
Loading