mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 14:42:35 +00:00
feat(lua): allow vim.cmd to be indexed (#19238)
This commit is contained in:
@@ -2148,6 +2148,13 @@ describe('lua stdlib', function()
|
||||
]]
|
||||
eq('2', funcs.luaeval "BUF")
|
||||
eq(2, funcs.luaeval "#vim.api.nvim_list_bufs()")
|
||||
|
||||
-- vim.cmd can be indexed with a command name
|
||||
exec_lua [[
|
||||
vim.cmd.let 'g:var = 2'
|
||||
]]
|
||||
|
||||
eq(2, funcs.luaeval "vim.g.var")
|
||||
end)
|
||||
|
||||
it('vim.regex', function()
|
||||
|
||||
Reference in New Issue
Block a user