PrashanthaTP / dotfiles

My dotfiles (Windows system)
1 stars 0 forks source link

Feat(Neovim): get syntax highlighting for embedded code #12

Open PrashanthaTP opened 2 years ago

PrashanthaTP commented 2 years ago

Type : Feature Request

Description :
It would be nice to see syntax highlighting for embedded languages inside vim

Current View

Lua inside Vim

image

Vim inside Lua

image

PrashanthaTP commented 2 years ago

From Vim's help [link]

                  *g:vimsyn_embed*

The g:vimsyn_embed option allows users to select what, if any, types of embedded script highlighting they wish to have.

g:vimsyn_embed == 0 : disable (don't embed any scripts) g:vimsyn_embed == 'lPr' : support embedded lua, python and ruby

This option is disabled by default.

So add add syntax files for lua and vim (or any other supported language to be embedded) inside after/syntax/ . example after/syntax/vim.vim to enable lua highlighting inside vim files.

Refer

Note :