From 0c23e226b4149ae114a26ce2225085dbb8db2989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Fl=C3=BCgge?= Date: Mon, 11 Sep 2023 15:23:18 +0200 Subject: [PATCH] chore(omni): remove warning by adding type annotation This type hint removes the annoying warning, when passing an url as an argument to context.fetcher. --- lua/orgmode/org/autocompletion/omni.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/orgmode/org/autocompletion/omni.lua b/lua/orgmode/org/autocompletion/omni.lua index 39101b346..c45ab3dbf 100644 --- a/lua/orgmode/org/autocompletion/omni.lua +++ b/lua/orgmode/org/autocompletion/omni.lua @@ -101,6 +101,7 @@ function Omni.is_headline() return Omni.get_line_content_before_cursor():match('^%*+%s+') end +---@return Table function Omni.get_all_contexts() return Omni.is_headline() and headline_contexts or contexts end