Skip to content

Commit a9bf829

Browse files
committed
add warnings in case the binary can't be found (not installed)
1 parent 184bf75 commit a9bf829

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/tabnine/binary.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ local function binary_path()
5050

5151
local version = paths[#paths]
5252
if not version then
53+
vim.notify("Did you remember to run the build script for tabnine-nvim?", vim.log.levels.WARN)
5354
return nil -- Is it installed?
5455
end
5556
local machine = arch_and_platform()
@@ -61,6 +62,7 @@ local function binary_path()
6162
if vim.fn.filereadable(binary) then -- Double check that it's installed
6263
return binary
6364
else
65+
vim.notify("Did you remember to run the build script for tabnine-nvim?", vim.log.levels.WARN)
6466
return nil -- File doesn't exist or isn't readable. Is it installed?
6567
end
6668
end

0 commit comments

Comments
 (0)