Closed ii14 closed 3 years ago
Yes. those setting was for test purpose.
Please refer to latest README
auto_close_after
Thanks, seems to be working when it's disabled.
~I don't see any relevant changes to the actual README, just in the source code.~ I didn't notice the new branch.
One thing I'd like to point out, is that I don't think nil
will actually disable the timeout, you have to set it to false
:
Please update the code to latest. The default value updated to nil
It still closes automatically for me even with auto_close_after = nil
in config.
@gegoune Changes are on the "refactor" branch, but auto_close_after = false
will work if you're on the master branch.
The changes merged to master.
With sumneko_lua the window always closes itself, no matter what, after 4 seconds. clangd doesn't have the same issue.
This is where it happens:
https://github.com/ray-x/lsp_signature.nvim/blob/79fda86596650f21c573b24a2338ce85f19c98aa/lua/lsp_signature.lua#L425-L427
By the way, I think this might be a mistake, the default timeout value is different here:
https://github.com/ray-x/lsp_signature.nvim/blob/79fda86596650f21c573b24a2338ce85f19c98aa/lua/lsp_signature.lua#L29
This option also isn't documented in the README.
My config:
Just in case this will be for some reason hard to get right, I propose at least having a way of disabling this timeout, by setting the option to either false, a negative number or zero.