feat(lua): handle lazy submodules in :lua vim. wildmenu completion

This commit is contained in:
bfredl
2022-03-09 14:26:01 +01:00
parent 2783f4cc4a
commit 5ed60804fe
2 changed files with 13 additions and 0 deletions

View File

@@ -106,6 +106,14 @@ describe('nlua_expand_pat', function()
)
end)
it('should work with lazy submodules of "vim" global', function()
eq({{ 'inspect' }, 4 },
get_completions('vim.inspec'))
eq({{ 'set' }, 11 },
get_completions('vim.keymap.se'))
end)
it('should be able to interpolate globals', function()
eq(
{{