• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

tbastos/vim-lua: Improved Lua 5.3 syntax and indentation support for Vim

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

tbastos/vim-lua

开源软件地址(OpenSource Url):

https://github.com/tbastos/vim-lua

开源编程语言(OpenSource Language):

Vim Script 100.0%

开源软件介绍(OpenSource Introduction):

vim-lua

Improved Lua 5.3 syntax and indentation support for Vim.

Highlighting: stock Vim (left) vs. this plugin (right): (Color scheme: solarized dark; Font: Anonymous Pro)

Configuration

vim-lua supports a few options. All are boolean and off by default: set an option to 1 with let g:lua_syntax_someoption = 1 to enable it (setting to 0 for disabling is currently not supported -- just don't set the option at all to keep it disabled).

  • g:lua_syntax_nosymboloperator disables highlighting of the Lua symbol operators (that is, all operators except for the keyword operators and and or).
  • g:lua_syntax_fancynotequal enables displaying Lua's ~= operator with Unicode character .
  • g:lua_syntax_nofold disables code folding. If this option is set, you can selectively reenable some folds with g:lua_syntax_fold_<group> where <group> can be table, comment, function, control or string. You can also have even more fine-grained control by enabling specific syntax regions instead of groups. Look in the source code for the second argument of call s:FoldableRegion for all options, but note that the names are subject to change in later versions.
  • g:lua_syntax_nostdlib disables highlighting of all standard library names like, io, print and even require, error etc. If that is too much you can use g:lua_syntax_noextendedstdlib instead to keep _G, module, require, assert, error, pcall and xpcall highlighted.

Contributing

Contributions are welcome! Please follow the existing code style and in your pull request explain the reason for the proposed change and how it is valuable.

Credits

The indent code was based off this gist.

Various configuration options were contributed by Christian Neumüller (@Oberon00).




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap