Adrian Lopez on Nostr: I've been scratching my head because on #neovim you cannot do ``` ...
I've been scratching my head because on #neovim you cannot do
```
vim.g.myglobal.myfield = "value"
```
and trying to do so will do nothing and print no error.
The correct way is
```
let newvalues = { myfield = "hi"}
vim.g.myglobal = newvalues
```
Which is totally cool, but having some error there would have saved me a good couple hours.
```
vim.g.myglobal.myfield = "value"
```
and trying to do so will do nothing and print no error.
The correct way is
```
let newvalues = { myfield = "hi"}
vim.g.myglobal = newvalues
```
Which is totally cool, but having some error there would have saved me a good couple hours.