Skip to content

Commit fdafabe

Browse files
committed
WIP - mostly working ToC
1 parent 2d74f93 commit fdafabe

4 files changed

Lines changed: 236 additions & 180 deletions

File tree

lua/neorg/modules/core/dirman/module.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ module.public = {
306306
return
307307
end
308308

309+
print("fullpath:", fullpath)
310+
print("path:", path)
309311
local destination = (fullpath / path):add_suffix(".norg")
310312

311313
-- Generate parents just in case

lua/neorg/modules/core/integrations/treesitter/module.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,8 @@ module.public = {
901901
if vim.fn.bufnr(source) ~= -1 then ---@diagnostic disable-line
902902
source = vim.uri_to_bufnr(vim.uri_from_fname(source))
903903
else
904+
print("source:", source)
905+
P(source)
904906
iter_src = io.open(source, "r"):read("*a")
905907
norg_parser = vim.treesitter.get_string_parser(iter_src, "norg")
906908
end

0 commit comments

Comments
 (0)