From 3e3775961fd231ab7cf1e8c67bb28249f720333c Mon Sep 17 00:00:00 2001 From: Mathias Fußenegger Date: Sun, 16 Mar 2025 13:58:38 +0100 Subject: refactor(lsp)!: rename lsp.completion.trigger() to get() (#32911) Problem: `trigger` is a custom word not yet used in APIs. Solution: Use `get` instead because the main effect is that the completion candidates will be collected (and shown by default, but follow-up commits are planned to add an `on_result` callback that allows more general handling). --------- Co-authored-by: Christian Clason --- test/functional/plugin/lsp/completion_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional/plugin') diff --git a/test/functional/plugin/lsp/completion_spec.lua b/test/functional/plugin/lsp/completion_spec.lua index 94578aa6da..7772a47589 100644 --- a/test/functional/plugin/lsp/completion_spec.lua +++ b/test/functional/plugin/lsp/completion_spec.lua @@ -847,7 +847,7 @@ describe('vim.lsp.completion: protocol', function() exec_lua(function() local win = vim.api.nvim_get_current_win() vim.api.nvim_win_set_cursor(win, pos) - vim.lsp.completion.trigger() + vim.lsp.completion.get() end) retry(nil, nil, function() @@ -1153,7 +1153,7 @@ describe('vim.lsp.completion: protocol', function() end, }) - vim.lsp.completion.trigger() + vim.lsp.completion.get() return params end) -- cgit