ekickx / clipboard-image.nvim

Neovim Lua plugin to paste image from clipboard.
MIT License
308 stars 51 forks source link

Missing parentheses Error #42

Open Riku-programming opened 1 year ago

Riku-programming commented 1 year ago

I installed the plugin and tried to run Run :checkhealth clipboard-image but got the following error.

  health#clipboard-image#check
  ========================================================================
    - ERROR: Failed to run healthcheck for "clipboard-image" plugin. Exception:
       function health#check, line 21
       Vim(call):E107: Missing parentheses '(': health#clipboard-image#check()

My environment is below.

It's in Japanese, but I'll post a picture.

image

Do you have any solutions? thank you

ekickx commented 1 year ago

Hmm weird 🤔. I'll try to take a look

ekickx commented 1 year ago

Oh okay so I create health check with health.lua file but neovim support Lua healthchecks since v0.6 https://github.com/neovim/neovim/pull/15259. So that's the problem.

This plugin should actually work on v0.5 so maybe I should make separate healthcheck in vimscript

Riku-programming commented 1 year ago

Sorry for the late reply. I see, thank you for your research.

It worked fine on my other device (NVIM v0.8.0), so I will raise the vim version on the 0.5.1 device to handle it.

dfendr commented 1 year ago

Hello, I'm receiving a similar error. Using (NVIM v0.9.0 nightly), macOS Ventura 13.2.1

image

I have fixed the error here: #48. I've changed the health.lua file to reference the proper check health functions, as documented here: https://neovim.io/doc/user/pi_health.html#health-dev.

Checkhealth and plugin now work great.

image