--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, }) -- document existing key chains require('which-key').register { ['n'] = { name = '[N]eorg', _ = 'which_key_ignore' }, ['m'] = { name = 'neorg [M]ode', _ = 'which_key_ignore' }, ['l'] = { name = 'neorg [L]ist', _ = 'which_key_ignore' }, ['ne'] = { name = '[N]eorg [E]xport', _ = 'which_key_ignore' }, } 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" }) vim.api.nvim_set_keymap("n", "neo", ":e /tmp/neorg-export.md", { noremap = true, silent = true, desc = "[N]eorg [E]xport [O]pen" }) vim.api.nvim_set_keymap("n", "nee", ":Neorg export to-file /tmp/neorg-export.md", { noremap = true, silent = true, desc = "[N]eorg [E]xport Predefined" }) vim.api.nvim_set_keymap("n", "nef", ":Neorg export to-file ", { noremap = true, silent = true, desc = "[N]eorg [E]xport [F]ile" })