mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(dashboard): better git check for advanced example. See #126
This commit is contained in:
parent
723d8eac84
commit
b4a293aac7
3 changed files with 5 additions and 5 deletions
|
@ -60,7 +60,7 @@ M.examples.advanced = {
|
|||
icon = " ",
|
||||
title = "Git Status",
|
||||
section = "terminal",
|
||||
enabled = vim.fn.isdirectory(".git") == 1,
|
||||
enabled = Snacks.git.get_root() ~= nil,
|
||||
cmd = "hub status --short --branch --renames",
|
||||
height = 5,
|
||||
padding = 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue