feat: open md

This commit is contained in:
2022-03-01 10:12:33 +08:00
parent 55d04782fa
commit 554068c22c
8 changed files with 51 additions and 28 deletions
+5
View File
@@ -8,6 +8,11 @@ function lv_utils.yank_filepath()
vim.fn.setreg('+',p)
end
function lv_utils.open_md()
local p = vim.fn.expand('%:p')
vim.fn.system("open -a typora "..p)
end
function lv_utils.define_augroups(definitions) -- {{{1
-- Create autocommand groups based on the passed definitions
--