Skip to content
Discussion options

You must be logged in to vote

This all seems to work as expected. Does this answer the question (as there is no explicit one, I am not sure)?

How can I fix the _G.confirm_action = to support both autoimport and noselect?

By making sure that this caveat is taken care of. I.e. instead of keycode("<C-n><C-y>") mimic pressing <C-n>, wait for a bit, mimic pressing <C-y>. Things that can make this more usable are:

  • Lower config.delay.info.
  • Doing this only if the first match doesn't have additionalTextEdits. It is a bit tricky and relies on implementation detail of complete-item having original LSP item as lsp.item in complete-item's user_data field. The vim.fn.complete_info() can be used to get the first matched complet…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@abeldekat
Comment options

abeldekat Apr 29, 2025
Collaborator Author

@abeldekat
Comment options

abeldekat Apr 29, 2025
Collaborator Author

@echasnovski
Comment options

Answer selected by echasnovski
@abeldekat
Comment options

abeldekat Apr 29, 2025
Collaborator Author

@abeldekat
Comment options

abeldekat May 4, 2025
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.completion
2 participants