tzachar / compe-tabnine

TabNine source for hrsh7th/nvim-compe
BSD 3-Clause "New" or "Revised" License
52 stars 3 forks source link

[Help] Windows 10 Pro x64 installation #26

Closed pidgeon777 closed 3 years ago

pidgeon777 commented 3 years ago

Hello, how would I manually install this plugin in a Windows 10 Pro x64 machine?

Especially for the TabNine binary part...

tzachar commented 3 years ago

For the binary, you need to patch the install.sh to run on windows. There are PowerShell versions of this script in other plugins, you can start from there. As for the plugin itself, it depends on the plugin manager you use.

pidgeon777 commented 3 years ago

Nevermind, I manually solved this by doing:

  1. Check what is the latest TabNine binary available:

$VERSION = https://update.tabnine.com/bundles/version

  1. Download it:

https://update.tabnine.com/bundles/$VERSION/$TARGET/TabNine.zip

$TARGET is x86_64-pc-windows-gnu in case of Windows 10 x64.

  1. Extract the TabNine binary archive into the binary folder to be placed into the compe-tabnine plugin path.

E.g.: C:\Users\username\AppData\Local\nvim-data\site\pack\packer\opt\compe-tabnine\binaries

  1. Rename TabNine.exe to TabNine_Windows.exe.