diff --git a/lua/gitsigns.lua b/lua/gitsigns.lua index 27e6a1773..54514b534 100644 --- a/lua/gitsigns.lua +++ b/lua/gitsigns.lua @@ -72,7 +72,7 @@ end local function parse_fugitive_uri(name) - if vim.g.loaded_fugitive == 0 then + if vim.fn.exists('*FugitiveReal') == 0 then dprint("Fugitive not installed") return end diff --git a/teal/gitsigns.tl b/teal/gitsigns.tl index 48b96c644..1dfef6fe4 100644 --- a/teal/gitsigns.tl +++ b/teal/gitsigns.tl @@ -72,7 +72,7 @@ end -- @return (string, string) Tuple of buffer name and commit local function parse_fugitive_uri(name: string): string, string - if vim.g.loaded_fugitive == 0 then + if vim.fn.exists('*FugitiveReal') == 0 then dprint("Fugitive not installed") return end