Skip to content

Commit e7fff70

Browse files
Make cmp source available only if buffer filetype is org.
1 parent 64d3edb commit e7fff70

File tree

1 file changed

+1
-1
lines changed
  • lua/orgmode/org/autocompletion

1 file changed

+1
-1
lines changed

lua/orgmode/org/autocompletion/cmp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Source.get_debug_name = function()
1717
end
1818

1919
function Source:is_available()
20-
return true
20+
return vim.bo.filetype == 'org'
2121
end
2222

2323
function Source:get_trigger_characters(_)

0 commit comments

Comments
 (0)