diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-03-09 14:26:01 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-03-09 15:25:06 +0100 |
commit | 5ed60804fe69e97a699ca64422f4f7f4cc20f3da (patch) | |
tree | b01987a6afd391d65266d56865b6bba97d3e7479 /test/functional/lua/command_line_completion_spec.lua | |
parent | 2783f4cc4a410cd3b73e8cdfbdf8c859c426c6c6 (diff) | |
download | rneovim-5ed60804fe69e97a699ca64422f4f7f4cc20f3da.tar.gz rneovim-5ed60804fe69e97a699ca64422f4f7f4cc20f3da.tar.bz2 rneovim-5ed60804fe69e97a699ca64422f4f7f4cc20f3da.zip |
feat(lua): handle lazy submodules in `:lua vim.` wildmenu completion
Diffstat (limited to 'test/functional/lua/command_line_completion_spec.lua')
-rw-r--r-- | test/functional/lua/command_line_completion_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/lua/command_line_completion_spec.lua b/test/functional/lua/command_line_completion_spec.lua index 3ba7e1589f..3a5966755e 100644 --- a/test/functional/lua/command_line_completion_spec.lua +++ b/test/functional/lua/command_line_completion_spec.lua @@ -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( {{ |