Skip to content

Commit

Permalink
fix(status): use buffer git root with Telescope
Browse files Browse the repository at this point in the history
style: follows stylua guidelines
  • Loading branch information
wroyca authored and mehalter committed Nov 19, 2023
1 parent 25c2a4a commit f2d4491
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lua/astroui/status/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,14 @@ function M.git_branch(opts)
name = "heirline_branch",
callback = function()
if is_available "telescope.nvim" then
vim.defer_fn(function() require("telescope.builtin").git_branches() end, 100)
vim.defer_fn(
function()
require("telescope.builtin").git_branches {
use_file_path = true,
}
end,
100
)
end
end,
},
Expand All @@ -212,7 +219,14 @@ function M.git_diff(opts)
name = "heirline_git",
callback = function()
if is_available "telescope.nvim" then
vim.defer_fn(function() require("telescope.builtin").git_status() end, 100)
vim.defer_fn(
function()
require("telescope.builtin").git_status {
use_file_path = true,
}
end,
100
)
end
end,
},
Expand Down

0 comments on commit f2d4491

Please sign in to comment.