refactor(completion): drive pum via vim.fn.complete() directly

This commit is contained in:
2026-04-18 04:33:57 +02:00
parent 405a176758
commit a4af5ce66f
3 changed files with 94 additions and 160 deletions
+1 -8
View File
@@ -17,8 +17,6 @@ local function on_attach(client, buf)
return
end
vim.bo[buf].omnifunc = "v:lua.ow_lsp_completion.omnifunc"
vim.api.nvim_clear_autocmds({ group = GROUP, buffer = buf })
vim.api.nvim_create_autocmd("InsertCharPre", {
buffer = buf,
@@ -208,12 +206,7 @@ function M.setup()
return "<CR>"
end, { expr = true, replace_keycodes = true })
vim.keymap.set(
"i",
"<C-x><C-o>",
session.trigger_manual,
{ expr = true, remap = false }
)
vim.keymap.set("i", "<C-x><C-o>", session.trigger)
end
return M