vim-lua
vim-lua copied to clipboard
Improved Lua 5.3 syntax and indentation support for Vim
Hello, I have noticed an issue with the indentation of table literals as function arguments, when the braces and parentheses are combined like below. **Expected Indentation** ```lua do foo() somefunction(arg1,...
Fix anonymous function argument causes following line to be incorrectly indented. Previously, it would give indentation like this: ```lua data = self.kitchen :digestCheese(function() return 1 end) self:Func() -- wrong indentation...
Fixes: ```lua local works = 19.9e19 local broke = { x = 19.9e19, -- showed as a Number and nothing x = 19.9, -- showed as two Numbers } local...
I've used it without thinking for a while, but recently realized why lua looks weird: function calls [don't use the colors for functions](https://github.com/tbastos/vim-lua/blob/c7c5b70/syntax/lua.vim#L225-L226). ```vim HiLink luaFuncCall PreProc HiLink luaFuncId Function...
cf. #14 How does this stack up against [BetterLua.vim](https://github.com/euclidianAce/BetterLua.vim) For starters I'm guessing: * This hasn't dropped old Lua 4.0 and 5.0 support. Anything else noteworthy? What reasons would there...
[tpope/vim-endwise](https://github.com/tpope/vim-endwise) lets you complete Lua code, adding an automatic `end`. This is done via the following code: ```vim let b:endwise_addition = 'end' let b:endwise_words = 'function,do,then' let b:endwise_pattern = '^\s*\zs\%(\%(local\s\+\)\=function\)\>\%(.*\\)\@!\|\
I ran across this repository and thought "oh cool, better Lua syntax highlighting!". I installed it and nothing happened. Then I started checking the comparison in the readme and realized...
add `luaVar` definition in order to apply color scheme to all lua variables.