Compare commits

..

2 Commits

2 changed files with 9 additions and 2 deletions

View File

@ -36,3 +36,12 @@ end
-- in :terminal esc exits edit mode -- in :terminal esc exits edit mode
keymap('t', '<Esc>', '<C-\\><C-n>', { noremap = true, silent = true }) keymap('t', '<Esc>', '<C-\\><C-n>', { noremap = true, silent = true })
-- Markdown scratchpads
require('which-key').add({
{ "<leader>m", group = "[M]arkdown" },
{ "<leader>m_", hidden = "true" }
})
keymap('n', '<leader>mn', ':e ~/tmp/scratchpad.md<CR>', { desc = '[M]arkdown [N]ew', noremap = true, silent = true })
keymap('n', '<leader>me', ':e ~/tmp/scratchpad-fr.md<CR>', { desc = '[M]arkdown new Fr[e]nch', noremap = true, silent = true })

View File

@ -40,8 +40,6 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
require('which-key').add { require('which-key').add {
{ "<leader>l", group = "neorg [L]ist" }, { "<leader>l", group = "neorg [L]ist" },
{ "<leader>l_", hidden = true }, { "<leader>l_", hidden = true },
{ "<leader>m", group = "neorg [M]ode" },
{ "<leader>m_", hidden = true },
{ "<leader>t", group = "neorg [T]asks" }, { "<leader>t", group = "neorg [T]asks" },
{ "<leader>n", group = "[N]eorg" }, { "<leader>n", group = "[N]eorg" },
{ "<leader>n_", hidden = true }, { "<leader>n_", hidden = true },