Open cxwx opened 1 month ago
@cxwx
多行补全需要设置一下cmp
mapping = { ['<cr>'] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = false }), }
应该是我的 tab 配置出现问题, 当仅有1个fittencode补全的时候会自动填充,
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
else
fallback()
end
end, { "i", "s" }),
这个 select_next_item
该如何改?
\n 无法正确使用,
配置使用 nvim-cmp