diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2025-03-16 13:58:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-16 13:58:38 +0100 |
commit | 3e3775961fd231ab7cf1e8c67bb28249f720333c (patch) | |
tree | d2220893408b500c0a282bf61f432fd841103e9b /test/functional/plugin/lsp/completion_spec.lua | |
parent | f5dd30948e67b0bfbfe0f1023a9b0c8a0b20b486 (diff) | |
download | rneovim-3e3775961fd231ab7cf1e8c67bb28249f720333c.tar.gz rneovim-3e3775961fd231ab7cf1e8c67bb28249f720333c.tar.bz2 rneovim-3e3775961fd231ab7cf1e8c67bb28249f720333c.zip |
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 <c.clason@uni-graz.at>
Diffstat (limited to 'test/functional/plugin/lsp/completion_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp/completion_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |