Skip to content

Commit

Permalink
fix: don't update metadata unless buffer is modified (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlysle authored Jun 25, 2024
1 parent a00628f commit 286d94b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/neorg/modules/core/esupports/metagen/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ module.public = {
return
end

local modified = vim.api.nvim_buf_get_option(buf, "modified")
if not modified then
return
end

-- Extract the root node of the norg_meta language
-- This process should be abstracted into a core.integrations.treesitter
-- function.
Expand Down

0 comments on commit 286d94b

Please sign in to comment.