Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lua/mkdnflow/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ source.new = function()
end

function source:complete(params, callback)
-- Only provide suggestions if the current word in the context starts with the trigger character '@'
if not params.context.cursor_before_line or not params.context.cursor_before_line:match('%W@%w*$') then
callback({})
return
end
local items = get_files_items()
if bib_paths then
-- For bib files, there are three lists (tables) in mkdnflow where we might find the paths for a bib file
Expand Down