summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/gitsigns
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/cfg/gitsigns')
-rw-r--r--.config/nvim/lua/cfg/gitsigns/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/lua/cfg/gitsigns/init.lua b/.config/nvim/lua/cfg/gitsigns/init.lua
index 7f1fbff..920c312 100644
--- a/.config/nvim/lua/cfg/gitsigns/init.lua
+++ b/.config/nvim/lua/cfg/gitsigns/init.lua
@@ -1,7 +1,11 @@
local M = {}
M.config = function()
- require("gitsigns").setup {
+ local status_ok, gitsigns = pcall(require, "gitsigns")
+ if not status_ok then
+ return
+ end
+ gitsigns.setup {
signs = {
-- TODO add hl to colorscheme
add = {