summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/gitsigns.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-10 23:15:04 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-10 23:15:04 +0200
commit540268d618627079c9b958a955b586e1888b46a8 (patch)
tree1a22a5feb457135178b9d4fe8b6c1755f5ca66bc /.config/nvim/lua/core/gitsigns.lua
parente79bd3273f58ba38e8fcd716090b89326791afbb (diff)
Major refactor of nvim
Diffstat (limited to '.config/nvim/lua/core/gitsigns.lua')
-rw-r--r--.config/nvim/lua/core/gitsigns.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/nvim/lua/core/gitsigns.lua b/.config/nvim/lua/core/gitsigns.lua
index bc310ad..0b72689 100644
--- a/.config/nvim/lua/core/gitsigns.lua
+++ b/.config/nvim/lua/core/gitsigns.lua
@@ -1,6 +1,7 @@
local M = {}
+local Log = require "core.log"
M.config = function()
- O.plugin.gitsigns = {
+ options.builtin.gitsigns = {
signs = {
add = {
hl = "GitSignsAdd",
@@ -44,16 +45,16 @@ M.config = function()
sign_priority = 6,
update_debounce = 200,
status_formatter = nil, -- Use default
- use_decoration_api = false,
}
end
M.setup = function()
local status_ok, gitsigns = pcall(require, "gitsigns")
if not status_ok then
+ Log:get_default().error "Failed to load gitsigns"
return
end
- gitsigns.setup(O.plugin.gitsigns)
+ gitsigns.setup(options.builtin.gitsigns)
end
return M