Skip to content

Commit

Permalink
Respect mappings definition order from file. Closes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
ktonga committed Sep 10, 2015
1 parent 5c8bbc6 commit 22ed2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/follow-my-lead.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function! FMLGetLeaderMappingsBySource()
endif
let idx = idx + 2
endwhile
let with_desc = map(mappings_by_source, 'FMLAddDescription(v:key, v:val)')
let with_desc = map(mappings_by_source, 'FMLAddDescription(v:key, reverse(v:val))')
let vimrc_val = remove(with_desc, s:vimrc_glob)
let vimrc_first = [{ 'source': s:vimrc_glob, 'mappings': vimrc_val }]
let vimrc_first += values(map(with_desc, '{ "source": v:key, "mappings": v:val }'))
Expand Down

0 comments on commit 22ed2bc

Please sign in to comment.