Skip to content

Commit 76edc8e

Browse files
wroycamehalter
authored andcommitted
fix(status): use buffer git root with Telescope
style: follows stylua guidelines
1 parent 25c2a4a commit 76edc8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/astroui/status/component.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function M.git_branch(opts)
188188
name = "heirline_branch",
189189
callback = function()
190190
if is_available "telescope.nvim" then
191-
vim.defer_fn(function() require("telescope.builtin").git_branches() end, 100)
191+
vim.defer_fn(function() require("telescope.builtin").git_branches { use_file_path = true } end, 100)
192192
end
193193
end,
194194
},
@@ -212,7 +212,7 @@ function M.git_diff(opts)
212212
name = "heirline_git",
213213
callback = function()
214214
if is_available "telescope.nvim" then
215-
vim.defer_fn(function() require("telescope.builtin").git_status() end, 100)
215+
vim.defer_fn(function() require("telescope.builtin").git_status { use_file_path = true } end, 100)
216216
end
217217
end,
218218
},

0 commit comments

Comments
 (0)