From 8df1c0eaac5c97c05262373101d8ebaa6571b6b6 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 4 Sep 2023 03:43:36 +0200 Subject: [PATCH] Add neorg --- lua/config/neorg.lua | 37 +++++++++++++++++++++++++++++++++++++ lua/plugins.lua | 5 +++++ 2 files changed, 42 insertions(+) create mode 100644 lua/config/neorg.lua diff --git a/lua/config/neorg.lua b/lua/config/neorg.lua new file mode 100644 index 0000000..b71f721 --- /dev/null +++ b/lua/config/neorg.lua @@ -0,0 +1,37 @@ +--[[ + Copyright 2023 Oscar Wallberg + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +]] + +-- https://github.com/nvim-neorg/neorg + +require("neorg").setup({ + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/Documents/notes", + }, + }, + }, + ["core.completion"] = { + config = { + engine = "nvim-cmp", + }, + }, + ["core.export"] = {}, + }, +}) diff --git a/lua/plugins.lua b/lua/plugins.lua index 2796e01..b27e0c6 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -182,6 +182,11 @@ local plugins = { "stevearc/aerial.nvim", config = function () require("config.aerial") end, }, + { + "nvim-neorg/neorg", + build = ":Neorg sync-parsers", + config = function () require("config.neorg") end, + }, } local opts = {}