From e598a6d84ad459ba83fe2074728a78e402502723 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Sun, 14 Jan 2024 18:48:53 -0300 Subject: [PATCH] neorg g.o.d --- lua/custom/plugins/cmp.lua | 1 + lua/custom/plugins/neorg.lua | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 lua/custom/plugins/neorg.lua diff --git a/lua/custom/plugins/cmp.lua b/lua/custom/plugins/cmp.lua index 1e2707c..e9ad411 100644 --- a/lua/custom/plugins/cmp.lua +++ b/lua/custom/plugins/cmp.lua @@ -122,6 +122,7 @@ return { }, sources = { { name = 'nvim_lsp' }, + { name = "neorg" }, { name = 'luasnip' }, { name = 'buffer' }, { name = 'path' }, diff --git a/lua/custom/plugins/neorg.lua b/lua/custom/plugins/neorg.lua new file mode 100644 index 0000000..c9d3b20 --- /dev/null +++ b/lua/custom/plugins/neorg.lua @@ -0,0 +1,32 @@ +return { + "nvim-neorg/neorg", + build = ":Neorg sync-parsers", + -- tag = "*", + dependencies = { "nvim-lua/plenary.nvim" }, + config = function() + require("neorg").setup { + load = { + ["core.defaults"] = {}, + ["core.completion"] = { + config = { + engine = "nvim-cmp" + }, + }, + ["core.concealer"] = { + config = { + icon_preset = "diamond", + }, + }, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/study/notes", + }, + default_workspace = "notes", + index = "001_index.norg" + }, + }, + }, + } + end, +}