refactor(nvim): improve lazy loading compat for Neorg
This commit is contained in:
parent
56738a03c8
commit
50d81644bc
@ -3,7 +3,7 @@ return {
|
|||||||
"nvim-neorg/neorg",
|
"nvim-neorg/neorg",
|
||||||
build = ":Neorg sync-parsers", -- This is the important bit!
|
build = ":Neorg sync-parsers", -- This is the important bit!
|
||||||
cmd = { "Neorg" },
|
cmd = { "Neorg" },
|
||||||
event = { "WinEnter" },
|
ft = { "norg" },
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "nvim-treesitter/nvim-treesitter" },
|
{ "nvim-treesitter/nvim-treesitter" },
|
||||||
},
|
},
|
||||||
@ -75,6 +75,9 @@ return {
|
|||||||
["core.ui.calendar"] = {},
|
["core.ui.calendar"] = {},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
if vim.bo.filetype == "norg" then
|
||||||
|
vim.cmd.edit()
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user