mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(blink): super-tab and ai completions
This commit is contained in:
parent
eead9dff84
commit
413566af59
1 changed files with 15 additions and 0 deletions
|
@ -101,6 +101,21 @@ return {
|
|||
end
|
||||
end
|
||||
|
||||
-- fix super-tab completion
|
||||
if opts.keymap.preset == "super-tab" then
|
||||
opts.keymap["<Tab>"] = {
|
||||
function(cmp)
|
||||
if cmp.snippet_active() then
|
||||
return cmp.accept()
|
||||
else
|
||||
return cmp.select_and_accept()
|
||||
end
|
||||
end,
|
||||
LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
|
||||
"fallback",
|
||||
}
|
||||
end
|
||||
|
||||
--- NOTE: compat with latest version. Currenlty 0.7.6
|
||||
if not vim.g.lazyvim_blink_main then
|
||||
---@diagnostic disable-next-line: inject-field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue