aboutsummaryrefslogtreecommitdiff
path: root/test/functional/viml/completion_spec.lua
diff options
context:
space:
mode:
authorTony Chen <tchen1998@gmail.com>2020-11-30 08:33:52 -0500
committerchentau <tchen1998@gmail.com>2021-01-26 17:04:32 -0800
commitd95a465b4399c3c10b83925935ec5f4807d65b60 (patch)
tree5a356442adb3cd61483cf0dfb6958731d58b1249 /test/functional/viml/completion_spec.lua
parent901dd79f6a5ee78a55d726abca868bebff117ca9 (diff)
downloadrneovim-d95a465b4399c3c10b83925935ec5f4807d65b60.tar.gz
rneovim-d95a465b4399c3c10b83925935ec5f4807d65b60.tar.bz2
rneovim-d95a465b4399c3c10b83925935ec5f4807d65b60.zip
Don't show entire context when completing
Diffstat (limited to 'test/functional/viml/completion_spec.lua')
-rw-r--r--test/functional/viml/completion_spec.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/viml/completion_spec.lua b/test/functional/viml/completion_spec.lua
index d59a1a3306..a4241fe5aa 100644
--- a/test/functional/viml/completion_spec.lua
+++ b/test/functional/viml/completion_spec.lua
@@ -3,6 +3,7 @@ local Screen = require('test.functional.ui.screen')
local clear, feed = helpers.clear, helpers.feed
local eval, eq, neq = helpers.eval, helpers.eq, helpers.neq
local feed_command, source, expect = helpers.feed_command, helpers.source, helpers.expect
+local funcs = helpers.funcs
local curbufmeths = helpers.curbufmeths
local command = helpers.command
local meths = helpers.meths
@@ -929,10 +930,10 @@ describe('completion', function()
end)
it('provides completion from `getcompletion()`', function()
- eq({'vim'}, meths.call_function('getcompletion', {'vi', 'lua'}))
- eq({'vim.api'}, meths.call_function('getcompletion', {'vim.ap', 'lua'}))
- eq({'vim.tbl_filter'}, meths.call_function('getcompletion', {'vim.tbl_fil', 'lua'}))
- eq({'print(vim'}, meths.call_function('getcompletion', {'print(vi', 'lua'}))
+ eq({'vim'}, funcs.getcompletion('vi', 'lua'))
+ eq({'api'}, funcs.getcompletion('vim.ap', 'lua'))
+ eq({'tbl_filter'}, funcs.getcompletion('vim.tbl_fil', 'lua'))
+ eq({'vim'}, funcs.getcompletion('print(vi', 'lua'))
end)
end)