lsp_signature.nvim
lsp_signature.nvim copied to clipboard
floating window generate BufLeave from editable buffer
When I enter in insert mode, this plugin generates a BufLeave from the edit buffer and a BufEnter for the floating window (floating window is not focused).
It breaks everything that is tied to BufLeave(autosave, autoformat, etc).
@ray-x
Ok, i traced.
signature_handler
-> vim.lsp.util.open_floating_preview
-> vim.api.nvim_open_win
without noautocmd = true
.
So need either implement custom preview window or keep the preview window open.
For now, you can use the undocumented setting cursorhold_update = false
I added a workaround to this. In long term may need to file a PR for neovim.