Skip to content

Commit

Permalink
fix: update signature of setup to not allow require an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
philolo1 authored and lewis6991 committed Sep 12, 2023
1 parent fef5d90 commit 907ae86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lua/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
20 changes: 10 additions & 10 deletions lua/gitsigns/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [[
Expand Down Expand Up @@ -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 {}

Expand Down

0 comments on commit 907ae86

Please sign in to comment.