Open joshuali925 opened 1 year ago
@joshuali925 regarding the "enter selects the arg name instead of adding a new line" problem, I had the same issue.
Here is how I fixed it: https://github.com/antoinemadec/dotfiles/commit/6b4b700637d84613338446134dbf87eb4df1b422
Thanks a lot @antoinemadec!
I've run into this as well. It'd be great to either fix this or expose a setting that we could enable/disable this behavior.
To reproduce use the following init.lua
then create a js file
vim repro.js
, wait for tsserver, then type:see completion menu opens, suggesting
o: T
.The problem is that
Object.freeze(o)
, it's no longer valid when cursor is inside the curly bracketsIf it's not easy to fix, is there a way to configure
entry_filter
to not display suggestion in this case? maybe like thisBut wanted to see if there's a better way. Thanks