ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.03k stars 58 forks source link

Popup doesn't close after exiting insert mode #123

Closed AgentCosmic closed 2 years ago

AgentCosmic commented 2 years ago

As per title, the popup will stay around after I finish editing. I'll have to enter insert mode and exit again to close the popup.

ray-x commented 2 years ago

Yes. I also saw this issue. But do not have a way to 100% reproduce this issue.

lobre commented 2 years ago

I can only reproduce this when using <C-c> to exit insert mode instead of <Esc>. Do you have the same behavior?

ray-x commented 2 years ago

From the vim doc, will not trigger InsertLeave event, on which the plugin is listening. So the behaviour is expected.

jonhoo commented 2 years ago

Hmm, that seems very unfortunate. I wonder why InsertLeave is only emitted from <Esc> and none of the other ways (keymapped or not) to leave insert mode :thinking: