diff --git a/lua/neorg/modules/core/integrations/nvim-cmp/module.lua b/lua/neorg/modules/core/integrations/nvim-cmp/module.lua index 899a2f9a3..f84e8295b 100644 --- a/lua/neorg/modules/core/integrations/nvim-cmp/module.lua +++ b/lua/neorg/modules/core/integrations/nvim-cmp/module.lua @@ -90,6 +90,10 @@ module.public = { return { "@", "-", "(", " ", ".", ":", "#", "*", "^" } end + function module.private.source:is_available() + return vim.bo.filetype == "norg" + end + module.private.cmp.register_source("neorg", module.private.source) end,