From 907ae8636016aab2f283576fc60d46ca3427e579 Mon Sep 17 00:00:00 2001 From: Patrick Klitzke Date: Tue, 12 Sep 2023 17:15:16 +0900 Subject: [PATCH] fix: update signature of setup to not allow require an argument --- lua/gitsigns.lua | 2 +- lua/gitsigns/config.lua | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lua/gitsigns.lua b/lua/gitsigns.lua index 41e2e5c25..5759465c8 100644 --- a/lua/gitsigns.lua +++ b/lua/gitsigns.lua @@ -154,7 +154,7 @@ end --- Attributes: ~ --- {async} --- ---- @param cfg table Configuration for Gitsigns. +--- @param cfg table|nil Configuration for Gitsigns. --- See |gitsigns-usage| for more details. M.setup = void(function(cfg) gs_config.build(cfg) diff --git a/lua/gitsigns/config.lua b/lua/gitsigns/config.lua index 33522825b..c965c6251 100644 --- a/lua/gitsigns/config.lua +++ b/lua/gitsigns/config.lua @@ -442,15 +442,15 @@ M.schema = { count_chars = { type = 'table', default = { - [1] = '1', -- '₁', - [2] = '2', -- '₂', - [3] = '3', -- '₃', - [4] = '4', -- '₄', - [5] = '5', -- '₅', - [6] = '6', -- '₆', - [7] = '7', -- '₇', - [8] = '8', -- '₈', - [9] = '9', -- '₉', + [1] = '1', -- '₁', + [2] = '2', -- '₂', + [3] = '3', -- '₃', + [4] = '4', -- '₄', + [5] = '5', -- '₅', + [6] = '6', -- '₆', + [7] = '7', -- '₇', + [8] = '8', -- '₈', + [9] = '9', -- '₉', ['+'] = '>', -- '₊', }, description = [[ @@ -855,7 +855,7 @@ local function handle_deprecated(cfg) end end ---- @param user_config Gitsigns.Config +--- @param user_config Gitsigns.Config|nil function M.build(user_config) user_config = user_config or {}