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

fix(user-commands): not working due to unexpected arg #103

Merged

Conversation

zbroniszewski
Copy link
Contributor

When a function is called by nvim_create_user_command, a single table argument is passed to that function. This resulted in all user commands not working due to trying to concatenate a string and a table.

The user commands are defined here:

vim.api.nvim_create_user_command("LspImagesPull", images_pull, {})
vim.api.nvim_create_user_command("LspImagesRemove", images_remove, {})

:help nvim_create_user_command
Screen Shot 2023-12-16 at 4 15 44 PM

When function is called by `nvim_create_user_command`, a single table
argument is passed to that function. This resulted in all user commands
not working due to trying to concatenate a string and a table.
@erikreinert erikreinert merged commit 4e2affd into lspcontainers:main Dec 16, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants