Skip to content

Commit

Permalink
WIP - mostly working ToC
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas committed Jul 23, 2024
1 parent 2d74f93 commit f5607be
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 180 deletions.
2 changes: 2 additions & 0 deletions lua/neorg/modules/core/dirman/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ module.public = {
return
end

print("fullpath:", fullpath)
print("path:", path)
local destination = (fullpath / path):add_suffix(".norg")

-- Generate parents just in case
Expand Down
2 changes: 2 additions & 0 deletions lua/neorg/modules/core/integrations/treesitter/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,8 @@ module.public = {
if vim.fn.bufnr(source) ~= -1 then ---@diagnostic disable-line
source = vim.uri_to_bufnr(vim.uri_from_fname(source))
else
print("source:", source)
P(source)
iter_src = io.open(source, "r"):read("*a")
norg_parser = vim.treesitter.get_string_parser(iter_src, "norg")
end
Expand Down
Loading

0 comments on commit f5607be

Please sign in to comment.