-
Notifications
You must be signed in to change notification settings - Fork 76
No candidates appear #46
Comments
What is happeningHmm first glance, it appears to be an issue where the From the clone of the project and your gifs, I'm seeing:
Why this is happeningRight now I do some checks for either a tsconfig.json or a jsconfig.json (for javascript projects). Possible fixRight now I'm only searching for that config file if it exist in the current directory or any child directory.
Here's an example of moving the tsconfig.json to the src directory. Or you could even create a symlink as well. |
I created symlinks.
And now works well! Thank you! I don't understand I wanted to put |
So the root search will use this line here https://github.com/mhartington/nvim-typescript/blob/master/rplugin/python3/nvim-typescript/dir.py#L9 So as soon as you start nvim, it will treat that directory as the root. I guess we could also do an if statement if('git rev-parse --show-toplevel'):
# set current project root to that
else:
# set project root to cwd |
I read around here. What you said is very cool! |
Sorry for the silence on my end. Can you pull the latest and give it a test? |
Closing as there has been no reply. If this issue still happens, please feel free to open a NEW issue. |
Problems summary
I can't see any candidates from this source.
I have used
nvim-typescript
. However, when I enter typescript buffer, I got a little time freeze everytime. I guessed that was TSServer staring time, so I tried reinstall, and I got this situation.Expected
I want completion like README.md screenshot.
Environment Information
Provide a minimal vim rc with less than 50 lines (Required!)
The reproduce ways from neovim starting
Example project repo?
Sorry, this is not a minimal project.
https://github.com/uzimith/twitch-comment/tree/nvim-typescript
Screen shot (if possible)
When I didn't call :TSStart
When I call :TSStart
Sometimes I can see some candidates from other sources.
The text was updated successfully, but these errors were encountered: