better diary open command
This commit is contained in:
parent
840d4ab0c2
commit
b2adb7cfcb
|
@ -16,9 +16,10 @@
|
||||||
(nmap :<C-P> ":Telescope find_files<CR>" "Telescope find_files")
|
(nmap :<C-P> ":Telescope find_files<CR>" "Telescope find_files")
|
||||||
(nmap :<leader>x ":write|bdelete<CR>" "Save and delete buffer")
|
(nmap :<leader>x ":write|bdelete<CR>" "Save and delete buffer")
|
||||||
(nmap :<leader>dt
|
(nmap :<leader>dt
|
||||||
#(vim.cmd (.. "edit ~/gemwiki/diary/"
|
#(vim.cmd (.. "split ~/gemwiki/diary/"
|
||||||
(os.date "%Y%m%d")
|
(os.date "%Y%m%d")
|
||||||
".gmi")
|
".gmi"
|
||||||
|
"| resize 8 | $")
|
||||||
"Open today's diary"))
|
"Open today's diary"))
|
||||||
(let [duck (require :duck)]
|
(let [duck (require :duck)]
|
||||||
(nmap :<leader>dd #(duck.hatch) "hatch a duck")
|
(nmap :<leader>dd #(duck.hatch) "hatch a duck")
|
||||||
|
|
Loading…
Reference in a new issue