Skip to content

Commit

Permalink
Mark vimscript block as "vim" (#2121)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
WhyNotHugo authored Jan 5, 2025
1 parent b555203 commit 4c1ca82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Setup

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)
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/cmp-nvim-lsp'
Expand Down

0 comments on commit 4c1ca82

Please sign in to comment.