You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For parameters that can either be a single value or a list T|T[], when already in a table, the completion range should not include surrounding curly braces.
Actual Behaviour
The completion edit range provided by lua-language-server for parameters seems to always include the entire parameter, which causes issues when completing params that can be either a single value or a list, for example, T|T[].
Reproduction steps
Create test.lua in the test dir with the following content:
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Completion
Expected Behaviour
For parameters that can either be a single value or a list
T|T[], when already in a table, the completion range should not include surrounding curly braces.Actual Behaviour
The completion edit range provided by lua-language-server for parameters seems to always include the entire parameter, which causes issues when completing params that can be either a single value or a list, for example,
T|T[].Reproduction steps
test.luain the test dir with the following content:test.luatest_funcat the end of the file with a list parameter:test_func({ ... })2025-09-27_11-54-50.mp4
Additional Notes
I have also reported to the blink.cmp but the maintainer thinks that it is a lua-language-server's issue: saghen/blink.cmp#2179
Log File
No response