Feat(nvim): [[ shortcut for insert link

This commit is contained in:
Bertrand Benjamin 2023-01-29 04:40:08 +01:00
parent 754ebcf1ae
commit c04543aba9

View File

@ -151,7 +151,7 @@ map("n", "<leader>zr", ":lua require('telekasten').rename_note()<CR>")
-- we could define [[ in **insert mode** to call insert link -- we could define [[ in **insert mode** to call insert link
-- inoremap [[ <cmd>:lua require('telekasten').insert_link()<CR> -- inoremap [[ <cmd>:lua require('telekasten').insert_link()<CR>
-- alternatively: leader [ -- alternatively: leader [
map("i", "<leader>[", "<cmd>:lua require('telekasten').insert_link({ i=true })<CR>") map("i", "[[", "<cmd>:lua require('telekasten').insert_link({ i=true })<CR>")
map("i", "<leader>zt", "<cmd>:lua require('telekasten').toggle_todo({ i=true })<CR>") map("i", "<leader>zt", "<cmd>:lua require('telekasten').toggle_todo({ i=true })<CR>")
map("i", "<leader>#", "<cmd>:lua require('telekasten').show_tags({i = true})<CR>") map("i", "<leader>#", "<cmd>:lua require('telekasten').show_tags({i = true})<CR>")