add dict/list workaround for internal variables

fixes #70
pull/71/head
Timothée Sterle 3 years ago
parent e6767f9c4b
commit 1e8a4abf20
No known key found for this signature in database
GPG Key ID: 136D558122196ED5

@ -759,6 +759,19 @@ echo g:variable
" {}
```
You can use a temporary variable as a workaround:
```vim
let g:variable = {}
lua << EOF
local tmp = vim.g.variable
tmp.key = 'a'
vim.g.variable = tmp
EOF
echo g:variable
" {'key': 'a'}
```
This is a known issue:
- [Issue #12544](https://github.com/neovim/neovim/issues/12544)

@ -920,6 +920,19 @@ does not work as expected:
" {}
<
You can use a temporary variable as a workaround:
>
let g:variable = {}
lua << EOF
local tmp = vim.g.variable
tmp.key = 'a'
vim.g.variable = tmp
EOF
echo g:variable
" {'key': 'a'}
<
This is a known issue:
- Issue #12544: https://github.com/neovim/neovim/issues/12544

Loading…
Cancel
Save