aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/number-inc-dec.lua
AgeCommit message (Collapse)AuthorFilesLines
2018-01-22lua: fix theme loading when lexer module is not availableMarc André Tanner1-1/+1
The color settings are currently stored in the `vis.lexers` table, make sure it is not nil even when loading the lexer module (or one of its dependencies e.g. lpeg) failed.
2017-07-14vis-lua: make selection first class primitives in Lua APIMarc André Tanner1-3/+3
2017-03-02lua: use goto label to mimic continue statementMarc André Tanner1-41/+36
This is a Lua 5.2 feature supported by LuaJIT.
2017-03-02lua: let number increment/decrement handle next numberMarc André Tanner1-37/+47
Operate on the next number to the right of the cursor, for now the matches are not restricted to the current line. Based on a patch from Denis Warsow. Close #509
2017-02-28lua: reimplement number increment <C-a> and decrement <C-x>Marc André Tanner1-0/+54
Based on a patch by Denis Warsow. Stuff which could probably be improved: - in vim the cursor does not need to be on top of the number, it suffices to be on the same line. - decrementing beyond zero does not work for hexadecimal and octal numbers, vim seems to wrap around in this case. 0x00000000 <C-x> becomes 0xffffffff Close #506