summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-02 20:46:54 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-02 20:52:11 +0200
commit3bb05edd275a252113d0cf8cfd702007a054bc02 (patch)
tree3118b04d3b9f7842689db943d4b9c016597ff27b /plugin
parent9b06ffbb206503b6bd5ef59fe5147065e907577e (diff)
downloadnvim-config-3bb05edd275a252113d0cf8cfd702007a054bc02.tar.gz
nvim-config-3bb05edd275a252113d0cf8cfd702007a054bc02.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 'plugin')
-rw-r--r--plugin/50-completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/50-completion.lua b/plugin/50-completion.lua
index 84f58c8..24d6e01 100644
--- a/plugin/50-completion.lua
+++ b/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