Evie Litherland-Smith
7d3109f60e
Make nvim-cmp standalone, lazy lone on InsertEnter and be used by neorg to enable treesitter integration (no LSP available) Move LSP config into lspconfig.lua Optimise some startup conditions
27 lines
841 B
Lua
27 lines
841 B
Lua
return {
|
|
"nvim-neorg/neorg",
|
|
build = ":Neorg sync-parsers",
|
|
event = { "FileType norg" },
|
|
cmd = "Neorg",
|
|
lazy = true,
|
|
dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter" },
|
|
init = function()
|
|
vim.api.nvim_create_autocmd({ "BufNewFile", "BufReadPost" }, {
|
|
pattern = { "*.norg" },
|
|
command = "set filetype=norg",
|
|
})
|
|
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
|
pattern = { "*.norg" },
|
|
command = "Neorg update-metadata",
|
|
})
|
|
end,
|
|
opts = {
|
|
load = {
|
|
["core.defaults"] = {},
|
|
["core.concealer"] = {},
|
|
["core.dirman"] = { config = { workspaces = { notes = "~/notes" } } },
|
|
["core.completion"] = { config = { engine = "nvim-cmp" } },
|
|
},
|
|
},
|
|
}
|