diff options
Diffstat (limited to 'lua/ben/plugins/fugitive.lua')
-rw-r--r-- | lua/ben/plugins/fugitive.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/ben/plugins/fugitive.lua b/lua/ben/plugins/fugitive.lua index e6cf21d..3957d95 100644 --- a/lua/ben/plugins/fugitive.lua +++ b/lua/ben/plugins/fugitive.lua @@ -1,5 +1,9 @@ return { "tpope/vim-fugitive", + -- Only load if git is installed + cond = function() + return vim.fn.executable("git") + end, dependencies = "tpope/vim-rhubarb", -- Only enable when in a git repo keys = { |