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: Checkbox State Toggle does not read states from config #193

Open
2 tasks done
andysazima opened this issue Oct 29, 2024 · 0 comments
Open
2 tasks done

🐞 Bug: Checkbox State Toggle does not read states from config #193

andysazima opened this issue Oct 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@andysazima
Copy link

Before reporting:

  • Ensure that the issue is reproducable on the main branch.
  • Ensure that there isn't an issue on this(either open or closed).

Problem:

When using require('markview.extras.checkboxes').setup({ states = {} }), any states I put in do not result in the :CheckboxNext function using those states and state sets. It will always use {" ", "X"} and {"-", "o"}. My use case is I want to put them all into a single set so I can swap between them with only one keybinding for :CheckboxNext.

I have tried:

states = {
    { " ", "X" },
    { "-", "o", "~"}
}
states = {
    { " ", "X", "-", "o", "~"}
}
states = {
     " ", "X", "-", "o", "~"
}

Regardless, the :CheckboxNext command will always use{" ", "X"} and {"-", "o"}.

Steps to reproduce the issue:

Use the :CheckboxNext command with your states list filled.

Expected behavior:

Markview should have used my input states from the config.

Neovim version:

0.10.1

@andysazima andysazima added the bug Something isn't working label Oct 29, 2024
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

2 participants