From 5fe0ad00084c8caaeda8a2c9bcb82da32fdf3a86 Mon Sep 17 00:00:00 2001 From: Joshua Minor Date: Sat, 20 Nov 2021 22:26:57 -0800 Subject: Double check that TreeView has the color override feature. --- plugins/gitstatus.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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, -- cgit v1.2.3