refactor(nvim): improve lazy loading compat for Neorg

This commit is contained in:
Price Hiller 2023-09-27 14:29:05 -05:00
parent 56738a03c8
commit 50d81644bc
No known key found for this signature in database

View File

@ -3,7 +3,7 @@ return {
"nvim-neorg/neorg",
build = ":Neorg sync-parsers", -- This is the important bit!
cmd = { "Neorg" },
event = { "WinEnter" },
ft = { "norg" },
dependencies = {
{ "nvim-treesitter/nvim-treesitter" },
},
@ -75,6 +75,9 @@ return {
["core.ui.calendar"] = {},
},
})
if vim.bo.filetype == "norg" then
vim.cmd.edit()
end
end,
},
}