aboutsummaryrefslogtreecommitdiff
path: root/plugins/gitstatus.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gitstatus.lua')
-rw-r--r--plugins/gitstatus.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua
index 4d0cb87..eb925b0 100644
--- a/plugins/gitstatus.lua
+++ b/plugins/gitstatus.lua
@@ -8,6 +8,14 @@ local StatusView = require "core.statusview"
local scan_rate = config.project_scan_rate or 5
+if TreeView then
+ if not (TreeView["set_color_override"] and TreeView["clear_all_color_overrides"]) then
+ -- TreeView doesn't have the color override feature we rely on, so skip it.
+ TreeView = nil
+ end
+end
+
+
local git = {
branch = nil,
inserts = 0,