You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
buffer is an alias to integer but that function takes string (e.g. "%", "$")
Steps To Reproduce
type vim.fn.bufnr("%") in your init.lua
get:
param-type-mismatch: Cannot assign `string` to parameter `integer?`.
- `string` cannot match `integer?`
- Type `string` cannot match `nil`
- Type `string` cannot match `integer`
Expected Behavior
no lsp errors
Repro
No response
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.5
Operating system/version
Linux
Describe the bug
buffer is an alias to integer but that function takes string (e.g.
"%"
,"$"
)Steps To Reproduce
vim.fn.bufnr("%")
in your init.luaExpected Behavior
no lsp errors
Repro
No response
The text was updated successfully, but these errors were encountered: