From ad1098a0110e0d5a3e303b67157e0910c85cea87 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 26 Sep 2023 16:24:10 -0400 Subject: Fix broken build --- lua/ben/plugins/blamer.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lua/ben/plugins/blamer.lua') diff --git a/lua/ben/plugins/blamer.lua b/lua/ben/plugins/blamer.lua index 9779c3a..9d5e6c4 100644 --- a/lua/ben/plugins/blamer.lua +++ b/lua/ben/plugins/blamer.lua @@ -1,9 +1,11 @@ return { - "APZelos/blamer.nvim", - -- Only load if linux is the os AND git is installed + -- Only load if on a compatible OS and git is installed cond = function() - return (vim.fn.has("linux") == 1) and vim.fn.executable("git") + local goodOS = (vim.fn.has("linux") == 1) or (vim.fn.has("mac") == 1) + local hasGit = vim.fn.executable("git") == 1 + return goodOS and hasGit end, + "APZelos/blamer.nvim", config = function() vim.g.blamer_enabled = 1 vim.g.blamer_delay = 500 -- cgit v1.2.3