Skip to content

feat: add :Cheaty reset to reset data to default value, add validator#7

Merged
StikyPiston merged 2 commits intoStikyPiston:mainfrom
DrKJeff16:feat/reset
Feb 24, 2026
Merged

feat: add :Cheaty reset to reset data to default value, add validator#7
StikyPiston merged 2 commits intoStikyPiston:mainfrom
DrKJeff16:feat/reset

Conversation

@DrKJeff16
Copy link
Contributor

Changes

  • Add util.lua with validate() function, a wrapper for vim.validate() (compatible for Neovim >=v0.11 and <v0.11 respectively)
  • Allow config.cheatsheet to be a string (it will be split into a string array in setup)
  • Add validations for setup()
  • Add :Cheaty reset to reset to default config.cheatsheet value if desired (with completions!)

@StikyPiston StikyPiston self-requested a review February 23, 2026 19:43
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
@DrKJeff16
Copy link
Contributor Author

Note: I force-pushed from rebasing to main.

@StikyPiston
Copy link
Owner

Tested it now, looks good

Thanks once again for the contributions!

@StikyPiston StikyPiston merged commit b9b4245 into StikyPiston:main Feb 24, 2026
2 checks passed
@DrKJeff16 DrKJeff16 deleted the feat/reset branch February 24, 2026 14:20
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