I have enabled a basic language injection for Vimscript in Lua (credit to
@tami6:matrix.org for the idea):
((function_call (field_expression) @_vim_cmd (arguments (string) @vim)) (#eq? @_vim_cmd "vim.cmd"))
Is it possible to assign a special highlight group only to this injected part? I want to give the embedded Vimscript a slight gray background, to distinguish it from the surrounding Lua.
Current output (default color scheme, light background):
I want to add a special highlight group to the Vimscript inside
vim.cmd [[ ... ]], so I can create visual separation from the rest of the file.