dotfiles/nvim/plugin/neorg.lua
2022-01-30 14:13:29 +01:00

21 lines
444 B
Lua

local ok, neorg = pcall(require, 'neorg')
if not ok then return end;
local ok, cmp = pcall(require, 'cmp')
if not ok then return end;
local cmp_config = cmp.get_config()
table.insert(cmp_config.sources, { name = "neorg" })
cmp.setup(cmp_config)
require('neorg').setup {
load = {
["core.defaults"] = {},
["core.norg.concealer"] = {},
["core.norg.completion"] = {
config = {
engine = "nvim-cmp"
}
}
}
}