hadronized / hop.nvim

Neovim motions on speed!
Other
2.48k stars 138 forks source link

health: Update from deprecated health api #362

Closed Grazfather closed 1 year ago

Grazfather commented 1 year ago

From the help:

  - *health#report_error* *vim.health.report_error()*     Use |vim.health.error()| instead.
  - *health#report_info* *vim.health.report_info()*       Use |vim.health.info()| instead.
  - *health#report_ok* *vim.health.report_ok()*           Use |vim.health.ok()| instead.
  - *health#report_start* *vim.health.report_start()*     Use |vim.health.start()| instead.
  - *health#report_warn* *vim.health.report_warn()*       Use |vim.health.warn()| instead.
joelazar commented 1 year ago

@phaazon These new methods are only available on master (>0.9). With the latest stable neovim these calls failing now -->

hop: require("hop.health").check()

- ERROR Failed to run healthcheck for "hop" plugin. Exception:
  function health#check, line 25
  Vim(eval):E5108: Error executing lua ...lazar/.local/share/nvim/lazy/hop.nvim/lua/hop/health.lua:10: attempt to call field 'start' (a nil value)
  stack traceback:
  ...lazar/.local/share/nvim/lazy/hop.nvim/lua/hop/health.lua:10: in function 'check'
  [string "luaeval()"]:1: in main chunk