iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.67k stars 277 forks source link

Markdown mappings #564

Closed zibiax closed 1 year ago

zibiax commented 1 year ago

Everything works great with this plugin. But I'm struggling to make a mapping of :MarkdownToggle and :MarkdownToggleStop. I'm new to nvim, so I would be very thankful for a thorough instruction on it. I've created a specific lua file in ~/.config/nvim/after/plugin where I'd like to put the mappings.

drjaska commented 1 year ago

vim.cmd([[nmap <C-s> <Plug>MarkdownPreview]]) etc. in lua should work

zibiax commented 1 year ago

I figured it out through my previous commands, and forgot to close it. But a huge thanks anyway :+1: