this post was submitted on 14 Jul 2023
9 points (100.0% liked)
Neovim
29 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
WARNING UNTESTED CHATGPT ANSWER:
You can use the
vim.g
global table in Neovim's built-in Lua to achieve the equivalent behavior. Here is how you might translate your Vimscript line to Lua:This code creates a global Vim variable
g:slime_default_config
with the given dictionary or table.vim.g
is a table that represents the Vim's globalg:
scope.Please ensure that you're running Neovim 0.5 or later, as the built-in Lua support was significantly improved in that version.