Skip to content

Commit

Permalink
Use maparg instead of mapcheck to allow vim-which-key to work and onl…
Browse files Browse the repository at this point in the history
…y skip mapping when exact mappings are found (#112)
  • Loading branch information
SidOfc committed Jul 30, 2020
1 parent bf03427 commit 3db745a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/markdown/mkdx.vim
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ if g:mkdx#settings.map.enable == 1
for [label, prefix, mapmode, binding, plug, cmd] in s:bindings
let mapping = (prefix ? g:mkdx#settings.map.prefix : '') . binding
if ((mapcheck(mapping, mapmode) == "") && !hasmapto(plug, mapmode))
if ((maparg(mapping, mapmode) == "") && !hasmapto(plug, mapmode))
if (!empty(cmd) && has('menu'))
exe mapmode . 'noremenu <silent> <script> Plugin.mkdx.' . label . (mapmode == 'v' ? '\ (Visual)' : '') . '<tab>' . mapping . ' ' . cmd
end
Expand Down

0 comments on commit 3db745a

Please sign in to comment.