Add description to neorg commands
This commit is contained in:
parent
c506a7ea78
commit
689bb2024d
@ -11,12 +11,12 @@ vim.api.nvim_create_autocmd({"FileType"}, {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>ni", ":Neorg index<CR>", {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("n", "<Leader>ni", ":Neorg index<CR>", {noremap = true, silent = true, desc = "[N]eorg [I]ndex"})
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>nm", ":Neorg inject-metadata<CR>", {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("n", "<Leader>nm", ":Neorg inject-metadata<CR>", {noremap = true, silent = true, desc = "[N]eorg insert [M]etadata"})
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>nj", ":Neorg journal toc open<CR>", {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("n", "<Leader>nj", ":Neorg journal toc open<CR>", {noremap = true, silent = true, desc = "[N]eorg [J]ournal"})
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>nt", ":Neorg journal today<CR>", {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("n", "<Leader>nt", ":Neorg journal today<CR>", {noremap = true, silent = true, desc = "[N]eorg [T]oday"})
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>ns", ":Neorg journal tomorrow<CR>", {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("n", "<Leader>ns", ":Neorg journal tomorrow<CR>", {noremap = true, silent = true, desc = "Neorg tomorrow"})
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>ny", ":Neorg journal yesterday<CR>", {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("n", "<Leader>ny", ":Neorg journal yesterday<CR>", {noremap = true, silent = true, desc = "[N]eorg [Y]esterday"})
|
||||||
|
|
||||||
local neorg = require('neorg')
|
local neorg = require('neorg')
|
||||||
|
|
||||||
@ -48,6 +48,7 @@ neorg.setup {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Use custom name for the author field in metadata instead of the system
|
-- Use custom name for the author field in metadata instead of the system
|
||||||
-- username
|
-- username
|
||||||
neorg.utils.get_username = function()
|
neorg.utils.get_username = function()
|
||||||
|
Loading…
Reference in New Issue
Block a user