diff --git a/after/plugin/neorg.lua b/after/plugin/neorg.lua new file mode 100644 index 0000000..c9c722f --- /dev/null +++ b/after/plugin/neorg.lua @@ -0,0 +1,7 @@ +-- Note keymaps +vim.keymap.set("n", "ni", ":Neorg index") +vim.keymap.set("n", "nr", ":Neorg return") +vim.keymap.set("n", "nj", ":Neorg journal custom") + +vim.keymap.set("n", "nim", ":Neorg inject-metadata") +vim.keymap.set("n", "nis", ":Neorg inject-metadata") diff --git a/lua/sevi-kun/packer.lua b/lua/sevi-kun/packer.lua index daec258..2148c81 100644 --- a/lua/sevi-kun/packer.lua +++ b/lua/sevi-kun/packer.lua @@ -30,6 +30,34 @@ return require('packer').startup(function(use) requires = 'nvim-lua/plenary.nvim' } + use { + "nvim-neorg/neorg", + tag = "*", + run = ":Neorg sync-parsers", + requires = "nvim-lua/plenary.nvim", + config = function () + require('neorg').setup { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.summary"] = {}, + ["core.export"] = {}, + ["core.export.markdown"] = {}, + ["core.ui"] = {}, + ["core.ui.calendar"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/Documents/Notes", + }, + default_workspace = "notes", + }, + }, + }, + } + end + } + use({ "kylechui/nvim-surround", tag = "*", -- Use for stability; omit to use `main` branch for the latest features