summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/blamer.lua
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-09-26 16:24:10 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-09-26 16:24:10 -0400
commitad1098a0110e0d5a3e303b67157e0910c85cea87 (patch)
treed0173e0a819da078e9c1f2d23238bdf976995838 /lua/ben/plugins/blamer.lua
parent71d3ea0a3652a07ca4d007e451183586486c42ba (diff)
Fix broken build
Diffstat (limited to 'lua/ben/plugins/blamer.lua')
-rw-r--r--lua/ben/plugins/blamer.lua8
1 files changed, 5 insertions, 3 deletions
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