nvim/lua/Filetype/markdown.lua
2023-01-22 22:23:51 +08:00

5 lines
230 B
Lua

local map = vim.api.nvim_set_keymap
local openPreview = ":CocCommand markdown-preview-enhanced.openPreview<CR>:CocCommand markdown-preview-enhanced.openPreviewBackground<CR>"
map('n', '<leader>r', openPreview, {noremap = false})