Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: The argument of vim.call is not a function, but a string is correct #129

Open
3 tasks done
rapan931 opened this issue Feb 20, 2023 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@rapan931
Copy link

Did you check docs and existing issues?

  • I have read all the neodev.nvim docs
  • I have searched the existing issues of neodev.nvim
  • I have searched the exsiting issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.9.0-dev-1009+gf1816f9ee

Operating system/version

Ubuntu 22.04(WSL)

Describe the bug

The argument of vim.call is not a function, but a string is correct.
SEE:

--- @param func fun()
function vim.call(func, ...) end

Thanks.

Steps To Reproduce

  1. vim.call("some#func")
  2. The following message is output
Cannot assign `string` to parameter `fun()`. - `string` cannot match `fun()` - Type `string` cannot match `fun()`

Expected Behavior

no warning message

Repro

No response

@rapan931 rapan931 added the bug Something isn't working label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant