I often forget the comma between embedded table entries in lua code.
t = {
a = { "str" },
b = {
{
"str3",
v = 1,
} <<-- missing comma
{
ime_state,
color = {fg = 'black', bg = '#f46868'}
},
...
},
c = { "str1", "str2" },
},
Is there a way in vim / neovim to highlight such errors?
scoop install lua-language-server
and followed the instructions inhelp: server_configurations
under sumneko_lua it works well.