refactor(nvim): improve lazy loading speed of org-mode
This commit is contained in:
parent
b1fea19246
commit
7051fa4a0e
@ -25,12 +25,9 @@ return {
|
|||||||
keys = {
|
keys = {
|
||||||
{ "<leader>o", desc = "> Org" },
|
{ "<leader>o", desc = "> Org" },
|
||||||
},
|
},
|
||||||
init = function()
|
|
||||||
require("orgmode").setup_ts_grammar()
|
|
||||||
end,
|
|
||||||
config = function()
|
config = function()
|
||||||
-- Load treesitter grammar for org
|
-- Load treesitter grammar for org
|
||||||
|
require("orgmode").setup_ts_grammar()
|
||||||
-- Setup orgmode
|
-- Setup orgmode
|
||||||
require("orgmode").setup({
|
require("orgmode").setup({
|
||||||
org_agenda_files = "~/Notes/**/*",
|
org_agenda_files = "~/Notes/**/*",
|
||||||
|
Loading…
Reference in New Issue
Block a user