Add
vim.opt.nrformats:append('blank')
from Vim Increment Number With Dash to correct bug where sprint-23 "increments" to "sprint-22" because the -23 part of the string is interpreted as a negative number.
By using the blank option, -23 is only treated as a negative number if there is a blank before -, therefore sprint-23 is NOT treated as a negative.
Add
from Vim Increment Number With Dash to correct bug where
sprint-23"increments" to "sprint-22" because the-23part of the string is interpreted as a negative number.By using the
blankoption,-23is only treated as a negative number if there is a blank before-, thereforesprint-23is NOT treated as a negative.