使用tab不全,取消长度线。

This commit is contained in:
2025-11-20 13:21:22 +08:00
parent 921909c962
commit ae7aae5daa
2 changed files with 24 additions and 1 deletions

23
lua/plugins/blink.lua Normal file
View File

@@ -0,0 +1,23 @@
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" },
},
},
},
}