Skip to content

Commit

Permalink
feat: error on download failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Nov 28, 2024
1 parent 59add2d commit 6054da2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/blink/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ function cmp.setup(opts)
config.merge_with(opts)

require('blink.cmp.fuzzy.download').ensure_downloaded(function(err)
if err then
vim.notify('Error while downloading blink.cmp pre-built binary: ' .. err, vim.log.levels.ERROR)
return
end
if err then error('Error while downloading blink.cmp pre-built binary: ' .. err) end

-- setup highlights, keymap, completion and signature help
require('blink.cmp.highlights').setup()
Expand Down

0 comments on commit 6054da2

Please sign in to comment.