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

Disable default values #32

Open
Susensio opened this issue Nov 16, 2023 · 1 comment
Open

Disable default values #32

Susensio opened this issue Nov 16, 2023 · 1 comment

Comments

@Susensio
Copy link

Susensio commented Nov 16, 2023

Wonderful plugin!

I would like to disable some default values, i.e. enabled <-> disabled
Is there a way to accomplish that

The use case is editing a lazy.nvim plugin spec, when editing the enabled line

return {
  "nat-418/boole.nvim",
  enabled = true,         -- i want to toggle this value
  opts = {
    mappings = {
      increment = "<C-a>",
      decrement = "<C-x>",
    },
  },
  keys = {
    { mode = { "n", "v" }, "<C-a>" },
    { mode = { "n", "v" }, "<C-x>" },
  },
}

When I goto that line, if I'm on the LHS and I want to change true to false, the plugin changes enabled to disabled

@nat-418
Copy link
Owner

nat-418 commented Jan 25, 2024

Thanks for this report, I will look into adding a disable option.

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

No branches or pull requests

2 participants