diff --git a/dots/.config/nvim/lua/plugins/configs/_neorg.lua b/dots/.config/nvim/lua/plugins/configs/_neorg.lua new file mode 100755 index 00000000..a0046b33 --- /dev/null +++ b/dots/.config/nvim/lua/plugins/configs/_neorg.lua @@ -0,0 +1,48 @@ +local neorg = require("neorg") + +neorg.setup({ + load = { + ["core.defaults"] = {}, + ["core.concealer"] = { + config = { + dim_code_blocks = { + enabled = true, + content_only = true, + adaptive = true, + }, + icon_preset = "diamond", + }, + }, + ["core.esupports.metagen"] = { + config = { + type = "auto", + }, + }, + ["core.integrations.nvim-cmp"] = { + config = {}, + }, + ["core.completion"] = { + config = { + engine = "nvim-cmp", + }, + }, + ["core.keybinds"] = { + config = { + default_keybinds = true, + -- norg_leader = "-" + }, + }, + ["core.dirman"] = { + config = { + workspaces = { + default = "~/.notes", -- Format: = + }, + autochdir = true, -- Automatically change the directory to the current workspace's root every time + index = "index.norg", -- The name of the main (root) .norg file + last_workspace = vim.fn.stdpath("cache") .. "/neorg_last_workspace.txt", -- The location to write and read the workspace cache file + }, + }, + ["core.integrations.telescope"] = {}, + ["core.qol.toc"] = {}, + }, +}) diff --git a/dots/.config/nvim/lua/plugins/plugins.lua b/dots/.config/nvim/lua/plugins/plugins.lua index 67b52afc..1fb10ed5 100755 --- a/dots/.config/nvim/lua/plugins/plugins.lua +++ b/dots/.config/nvim/lua/plugins/plugins.lua @@ -540,6 +540,18 @@ lazy.setup({ end, event = "VeryLazy", }, + { + "nvim-neorg/neorg", + build = ":Neorg sync-parsers", + config = function() + require("plugins.configs._neorg") + end, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-neorg/neorg-telescope", + }, + ft = "norg", + }, -- Log Syntax Highlighting {