--vim.api.nvim_set_keymap('', 'à', '', { noremap = true, silent = true }) local neorgroup = vim.api.nvim_create_augroup("neorg", { clear = true }) vim.api.nvim_create_autocmd({ "FileType" }, { pattern = { "norg" }, group = neorgroup, callback = function() vim.g.maplocalleader = ' ' vim.o.conceallevel = 2 vim.api.nvim_set_keymap("n", "nr", ":Neorg return", { noremap = true, silent = true, desc = "[N]eorg [R]eturn" }) end, }) vim.api.nvim_set_keymap("n", "ni", ":Neorg index", { noremap = true, silent = true, desc = "[N]eorg [I]ndex" }) vim.api.nvim_set_keymap("n", "nm", ":Neorg inject-metadata", { noremap = true, silent = true, desc = "[N]eorg insert [M]etadata" }) vim.api.nvim_set_keymap("n", "nj", ":Neorg journal toc open", { noremap = true, silent = true, desc = "[N]eorg [J]ournal" }) vim.api.nvim_set_keymap("n", "nt", ":Neorg journal today", { noremap = true, silent = true, desc = "[N]eorg [T]oday" }) vim.api.nvim_set_keymap("n", "ns", ":Neorg journal tomorrow", { noremap = true, silent = true, desc = "Neorg tomorrow" }) vim.api.nvim_set_keymap("n", "ny", ":Neorg journal yesterday", { noremap = true, silent = true, desc = "[N]eorg [Y]esterday" }) local neorg = require('neorg') neorg.setup { load = { ["core.defaults"] = {}, ["core.concealer"] = { config = { icon_preset = "diamond", } }, ["core.dirman"] = { config = { workspaces = { notes = "~/Sync/neorg", }, default_workspace = "notes", } }, ["core.export"] = { config = { export_dir = "/", }, }, ["core.esupports.metagen"] = { config = { type = "empty", }, }, } } -- Use custom name for the author field in metadata instead of the system -- username neorg.utils.get_username = function() return "Chouhartem" end