level 1
代码补全时必须按enter回车键才有用,按tab键只能缩进,和大多数IDE操作习惯都不同,太反人类了。
2024年07月30日 10点07分
1
level 1
lua/plugins下新建blink.lua,然后写:
return {
{
"saghen/blink.cmp",
opts = {
keymap = {
preset = "enter",
["<CR>"] = { "fallback" },
["<Tab>"] = {
function(cmp)
if cmp.snippet_active() then
return cmp.accept()
else
return cmp.select_and_accept()
end
end,
"snippet_forward",
"fallback",
},
["<S-Tab>"] = { "snippet_backward", "fallback" },
},
},
},
}
2025年02月19日 00点02分
4
感谢,这样子方便多了
2025年06月20日 14点06分