diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-02 20:46:54 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-02 20:52:11 +0200 |
| commit | bcfc29496b7c6e59a810e8241fbcc762503ae7df (patch) | |
| tree | 908c9e0fe2c32dcc09df9f4cd8f167b924ed869b /.config/nvim/plugin/50-completion.lua | |
| parent | 69f2071213987a6bc8de02be5a7e8f05ec99caad (diff) | |
| download | dotfiles-bcfc29496b7c6e59a810e8241fbcc762503ae7df.tar.gz dotfiles-bcfc29496b7c6e59a810e8241fbcc762503ae7df.zip | |
refactor(nvim): use the correct API for wildtrigger()
Use `vim.fn.wildtrigger()` instead of `vim.cmd.call("wildtrigger()")`.
This avoid marshalling the value between Lua and the Vimscript engine.
Diffstat (limited to '.config/nvim/plugin/50-completion.lua')
| -rw-r--r-- | .config/nvim/plugin/50-completion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/plugin/50-completion.lua b/.config/nvim/plugin/50-completion.lua index 84f58c8..24d6e01 100644 --- a/.config/nvim/plugin/50-completion.lua +++ b/.config/nvim/plugin/50-completion.lua @@ -38,7 +38,7 @@ vim.api.nvim_create_autocmd({ "CmdlineChanged", "CmdlineEnter" }, { group = vim.g.dotfiles.augroup, pattern = "[:\\/\\?]", callback = function() - vim.cmd.call("wildtrigger()") + vim.fn.wildtrigger() end, }) vim.opt.wildmenu = true -- Show completions in a menu |
