add neorg for notes taking

This commit is contained in:
Lord Of Nougate 2023-09-05 20:40:26 +02:00
parent 23316d5276
commit a409554f1a
2 changed files with 35 additions and 0 deletions

7
after/plugin/neorg.lua Normal file
View File

@ -0,0 +1,7 @@
-- Note keymaps
vim.keymap.set("n", "<leader>ni", ":Neorg index<CR>")
vim.keymap.set("n", "<leader>nr", ":Neorg return<CR>")
vim.keymap.set("n", "<leader>nj", ":Neorg journal custom<CR>")
vim.keymap.set("n", "<leader>nim", ":Neorg inject-metadata<CR>")
vim.keymap.set("n", "<leader>nis", ":Neorg inject-metadata<CR>")

View File

@ -30,6 +30,34 @@ return require('packer').startup(function(use)
requires = 'nvim-lua/plenary.nvim' 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({ use({
"kylechui/nvim-surround", "kylechui/nvim-surround",
tag = "*", -- Use for stability; omit to use `main` branch for the latest features tag = "*", -- Use for stability; omit to use `main` branch for the latest features