Skip to content

Commit 7fb6ca6

Browse files
authored
fix(insert-files): ensure buffer is loaded before passing to treesitter parser (#74)
1 parent ddb2556 commit 7fb6ca6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/telescope/_extensions/neorg/insert_file_link.lua

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ local function get_file_title(file)
3939
return nil
4040
end
4141

42+
local _ = vim.fn.bufload(tostring(file))
4243
local metadata = ts.get_document_metadata(file)
4344
if not metadata or not metadata.title then
4445
return nil

0 commit comments

Comments
 (0)