mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fix(lua): no omni/cmdline completion for vim.env (#33044)
Problem: - `:lua vim.env.<Tab>` does not show completion of environment variables - Meanwhile, `:let $<Tab>` does show completion of environment variables Solution: - Fix it
This commit is contained in:
@@ -269,6 +269,18 @@ describe('nlua_expand_pat', function()
|
||||
}
|
||||
eq(expected, actual)
|
||||
end)
|
||||
|
||||
it('vim.env', function()
|
||||
exec_lua [[
|
||||
vim.env.NLUA_ENV_VAR = 'foo'
|
||||
]]
|
||||
local actual = get_completions('vim.env.NLUA')
|
||||
local expected = {
|
||||
{ 'NLUA_ENV_VAR' },
|
||||
#'vim.env.',
|
||||
}
|
||||
eq(expected, actual)
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('completes', function()
|
||||
|
Reference in New Issue
Block a user