Mark vimscript block as "vim" (#2121)

The example configuration is Vimscript, with a heredoc containing some
Lua code. Using "lua" as a language identifier results neither the
Vimscript portion nor the Lua portion being highlighted propertly.

Mark the code block as "vim".  Neovim (with treesitter) properly
highlights the outer block as Vimscript, and the Lua heredoc as Lua
code.
This commit is contained in:
Hugo
2025-01-05 16:17:14 +01:00
committed by GitHub
parent b555203ce4
commit 4c1ca82685

View File

@@ -29,7 +29,7 @@ Setup
This example configuration uses `vim-plug` as the plugin manager and `vim-vsnip` as a snippet plugin. This example configuration uses `vim-plug` as the plugin manager and `vim-vsnip` as a snippet plugin.
```lua ```vim
call plug#begin(s:plug_dir) call plug#begin(s:plug_dir)
Plug 'neovim/nvim-lspconfig' Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/cmp-nvim-lsp'