diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2021-03-28 00:43:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 00:43:06 +0100 |
commit | 2b663c061b8a1fa173ff23901734356bc96758bd (patch) | |
tree | bc88b1254069f0c894198be07e83c64133301898 | |
parent | acd643bd496a3c76ff99a9952d493a16cd2861d6 (diff) | |
download | rneovim-2b663c061b8a1fa173ff23901734356bc96758bd.tar.gz rneovim-2b663c061b8a1fa173ff23901734356bc96758bd.tar.bz2 rneovim-2b663c061b8a1fa173ff23901734356bc96758bd.zip |
viml: embed Lua syntax highlighting [skip ci] (#14213)
-rw-r--r-- | runtime/doc/vim_diff.txt | 2 | ||||
-rw-r--r-- | runtime/syntax/vim.vim | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 0c1e216164..eadc1c04a0 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -70,6 +70,8 @@ the differences. - |matchit| plugin is enabled. To disable it in your config: > :let loaded_matchit = 1 +- |g:vimsyn_embed| defaults to "l" to enable Lua highlighting + ============================================================================== 3. New Features *nvim-features* diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 1a37af1c8a..92348d57ec 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -616,7 +616,7 @@ syn region vimGlobal matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' e " g:vimsyn_embed =~# 'r' : embed ruby " g:vimsyn_embed =~# 't' : embed tcl if !exists("g:vimsyn_embed") - let g:vimsyn_embed= 0 + let g:vimsyn_embed = 'l' endif " [-- lua --] {{{3 |