diff options
author | brianhuster <phambinhanctb2004@gmail.com> | 2025-03-01 01:27:40 +0700 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-02 06:46:26 +0800 |
commit | 2b0f967b7704dcc782aebc99ec79482c20b5feef (patch) | |
tree | 92a7b9d5e70a208f27334feb7b739d0b0bb9b1f5 /runtime/syntax | |
parent | ea4a7cc616641a0ceaad402de57023009c26cf49 (diff) | |
download | rneovim-2b0f967b7704dcc782aebc99ec79482c20b5feef.tar.gz rneovim-2b0f967b7704dcc782aebc99ec79482c20b5feef.tar.bz2 rneovim-2b0f967b7704dcc782aebc99ec79482c20b5feef.zip |
vim-patch:00a00f5: runtime(lua): Update lua ftplugin and documentation
Problem:
- The doc says the default `g:lua_subversion` is 2, but in fact it is 3
(see `runtime/syntax/lua.vim`)
- `includeexpr` doesn't work with module in `init.lua`
Solution:
- Update documentation
- Assign value to option `&include`
- Add function `LuaInclude` and assign it to `l:&includeexpr`
closes: vim/vim#16655
https://github.com/vim/vim/commit/00a00f5d3fc8dcf08e959c207a90f5902abc6a08
Co-authored-by: brianhuster <phambinhanctb2004@gmail.com>
Co-authored-by: dkearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/lua.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/syntax/lua.vim b/runtime/syntax/lua.vim index 9c5a490582..f5851d024f 100644 --- a/runtime/syntax/lua.vim +++ b/runtime/syntax/lua.vim @@ -2,7 +2,7 @@ " Language: Lua 4.0, Lua 5.0, Lua 5.1, Lua 5.2 and Lua 5.3 " Maintainer: Marcus Aurelius Farias <masserahguard-lua 'at' yahoo com> " First Author: Carlos Augusto Teixeira Mendes <cmendes 'at' inf puc-rio br> -" Last Change: 2022 Sep 07 +" Last Change: 2025 Feb 25 " Options: lua_version = 4 or 5 " lua_subversion = 0 (for 4.0 or 5.0) " or 1, 2, 3 (for 5.1, 5.2 or 5.3) @@ -16,6 +16,7 @@ endif let s:cpo_save = &cpo set cpo&vim +" keep in sync with ftplugin/lua.vim if !exists("lua_version") " Default is lua 5.3 let lua_version = 5 |