["<c-e>"] = cmp.mapping(
function()
cmp_ultisnips_mappings.compose { "expand", "jump_forwards" } (function() end)
end,
{ "i", "s", --[[ "c" (to enable the mapping in command mode) ]] }
),
In autocomplete.lua, there is ambiguity.
Now I have a snippet:
snippet head "Head of Hexo Blogs"
title: ${1:title}
author: Peng Liu
cover: /images/`!p import os
base_name, _ = os.path.splitext(snip.fn)
snip.rv = base_name`/cover.png
date: `date +"%Y-%m-%d %H:%M:%S"`
tags:
- ${2:tag}
categories:
- ${3:type}
---
And another short snippet:
snippet aj "Markdown keyboard" i
<kbd>${1:key}</kbd>
endsnippet
The first snippet contains multiple placeholders.
In the first snippet instance, if I type aj with the intention of keyboard typing, the push of Ctrl e will have two different meanings:
- expand
aj
- or
jump-forward to the next placeholder.
I wanted it to take the expansion action but now it does nothing.
In
autocomplete.lua, there is ambiguity.Now I have a snippet:
And another short snippet:
snippet aj "Markdown keyboard" i <kbd>${1:key}</kbd> endsnippetThe first snippet contains multiple placeholders.
In the first snippet instance, if I type
ajwith the intention of keyboard typing, the push of Ctrl e will have two different meanings:ajjump-forwardto the next placeholder.I wanted it to take the expansion action but now it does nothing.