How to automatically insert space after completion? #1137
Answered
by
hrsh7th
grfrederic
asked this question in
Q&A
-
hi, i'm trying to make
which works almost -- the space appears for a split second but then is overridden by the completion (if i change the paste command to insert something different like "SPACEHERE" it's possible to see it for a split second). does anyone know why this is happening and how to make it work? |
Beta Was this translation helpful? Give feedback.
Answered by
hrsh7th
Aug 19, 2022
Replies: 1 comment 1 reply
-
The cmp.confirm({ select = true }, function()
-- then you can feed `<Space>` here.
end) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
grfrederic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
cmp.confirm
can accept the callback function.