We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current type annotations for vim.fn.setreg are as follows:
--- @param regname string --- @param value any --- @param options? table --- @return any
The options parameter, I believe, should be string rather than table.
options
string
table
nvim --clean :lua vim.fn.setreg("+", "fails", { "c" }) :lua vim.fn.setreg("+", "works", "c")
vim.fn.setreg either accepts a table or the type annotations are updated to show a string
vim.fn.setreg
0.9.5
kinda? but not really?
openSUSE Tumbleweed 20240207
alacritty 0.13.1
screen-256color
Unpacking nvim-linux64.tar.gz from GitHub Releases
The text was updated successfully, but these errors were encountered:
Related to folke/neodev.nvim#150
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Problem
Current type annotations for vim.fn.setreg are as follows:
The
options
parameter, I believe, should bestring
rather thantable
.Steps to reproduce
nvim --clean
:lua vim.fn.setreg("+", "fails", { "c" })
:lua vim.fn.setreg("+", "works", "c")
Expected behavior
vim.fn.setreg
either accepts atable
or the type annotations are updated to show astring
Neovim version (nvim -v)
0.9.5
Vim (not Nvim) behaves the same?
kinda? but not really?
Operating system/version
openSUSE Tumbleweed 20240207
Terminal name/version
alacritty 0.13.1
$TERM environment variable
screen-256color
Installation
Unpacking nvim-linux64.tar.gz from GitHub Releases
The text was updated successfully, but these errors were encountered: