diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-03-10 15:46:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 15:46:18 +0100 |
commit | 6170574d2faae4e30f49098e4947075bb0bdd3b5 (patch) | |
tree | 3d1ec8f9d5d72f7940bc4b2a4b06e9cd4a3ac825 /test | |
parent | 3a32aa96159ae1fdd0efd55389a4b1c2f92c98f7 (diff) | |
parent | 5ed60804fe69e97a699ca64422f4f7f4cc20f3da (diff) | |
download | rneovim-6170574d2faae4e30f49098e4947075bb0bdd3b5.tar.gz rneovim-6170574d2faae4e30f49098e4947075bb0bdd3b5.tar.bz2 rneovim-6170574d2faae4e30f49098e4947075bb0bdd3b5.zip |
Merge pull request #17660 from bfredl/luacomplete
feat(lua): handle lazy submodules in `:lua vim.` wildmenu completion
Diffstat (limited to 'test')
-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( {{ |