Skip to content

Commit

Permalink
fix(completion): selected completion engine not being engaged
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jun 6, 2023
1 parent 92aa737 commit 474af82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/neorg/modules/core/completion/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ module.load = function()
-- If our engine is compe then attempt to load the integration module for nvim-compe
if module.config.public.engine == "nvim-compe" and neorg.modules.load_module("core.integrations.nvim-compe") then
neorg.modules.load_module_as_dependency("core.integrations.nvim-compe", module.name, {})
module.private.engine = neorg.modules.get_module("core.integrations.nvim-compe")
elseif module.config.public.engine == "nvim-cmp" and neorg.modules.load_module("core.integrations.nvim-cmp") then
neorg.modules.load_module_as_dependency("core.integrations.nvim-cmp", module.name, {})
module.private.engine = neorg.modules.get_module("core.integrations.nvim-cmp")
else
log.error("Unable to load completion module -", module.config.public.engine, "is not a recognized engine.")
Expand Down

0 comments on commit 474af82

Please sign in to comment.