mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2024-09-16 14:34:09 +02:00
feat(config): improve deprecation message
There are Neovim users who don't know how to configure highlights. Adjust the deprecation message to include an example of how to set a highlight.
This commit is contained in:
parent
d0db8ef6a0
commit
fa42613096
1 changed files with 5 additions and 2 deletions
|
@ -183,10 +183,13 @@ local function validate_signs(x)
|
|||
if x[kind] and x[kind][ty] and vim.endswith(ty, 'hl') then
|
||||
warnings = warnings or {}
|
||||
local w = string.format(
|
||||
"'signs.%s.%s' is now deprecated, please define highlight '%s'",
|
||||
"'signs.%s.%s' is now deprecated, please define highlight '%s' e.g:\n"
|
||||
.. " vim.api.nvim_set_hl(0, '%s', { link = '%s' })",
|
||||
kind,
|
||||
ty,
|
||||
v
|
||||
v,
|
||||
v,
|
||||
x[kind][ty]
|
||||
)
|
||||
warnings[w] = true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue