Skip to content

Commit

Permalink
chore(omni): remove warning by adding type annotation
Browse files Browse the repository at this point in the history
This type hint removes the annoying warning, when passing an url as an
argument to context.fetcher.
  • Loading branch information
seflue committed Oct 22, 2023
1 parent 4fddf92 commit 0c23e22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/orgmode/org/autocompletion/omni.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c23e22

Please sign in to comment.