Skip to content

Commit 1ab15f4

Browse files
authored
fix: enable source of nvim-cmp only norg file type (#1298)
1 parent bd12dac commit 1ab15f4

File tree

1 file changed

+4
-0
lines changed
  • lua/neorg/modules/core/integrations/nvim-cmp

1 file changed

+4
-0
lines changed

lua/neorg/modules/core/integrations/nvim-cmp/module.lua

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ module.public = {
9090
return { "@", "-", "(", " ", ".", ":", "#", "*", "^" }
9191
end
9292

93+
function module.private.source:is_available()
94+
return vim.bo.filetype == "norg"
95+
end
96+
9397
module.private.cmp.register_source("neorg", module.private.source)
9498
end,
9599

0 commit comments

Comments
 (0)