2 votes

Argument of extend() must be a List or Dictionary, using List as a String errors

There is a kind of misunderstanding here. vim.g.foo.a = 0 will fail as foo does not exist (yet). This is quite common point for many languages, no matter if Lua or VimScript. vim.g.foo = {}; vim.g....
Matt's user avatar
  • 20.7k
1 vote

Argument of extend() must be a List or Dictionary, using List as a String errors

See the reddit post for origin. :h lua-vim-variables Note that setting dictionary fields directly will not write them back into Nvim. This is because the index into the namespace simply returns a ...
Vladyslav Rehan's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible