Skip to content

Comments

refactor!: allow live editing, LuaLS annotations#5

Merged
StikyPiston merged 6 commits intoStikyPiston:mainfrom
DrKJeff16:refactor/live-editing
Feb 23, 2026
Merged

refactor!: allow live editing, LuaLS annotations#5
StikyPiston merged 6 commits intoStikyPiston:mainfrom
DrKJeff16:refactor/live-editing

Conversation

@DrKJeff16
Copy link
Contributor

Description

I've allowed live editing. Persistent accross sessions and controlled by a buffer-local autocommand.

This closes #2.

Would love your feedback!

Signed-off-by: Guennadi Maximov C <[email protected]>
Signed-off-by: Guennadi Maximov C <[email protected]>
Signed-off-by: Guennadi Maximov C <[email protected]>
@DrKJeff16 DrKJeff16 changed the title refactor!: allow live editing refactor!: allow live editing, LuaLS annotations Feb 22, 2026
@StikyPiston
Copy link
Owner

Error when trying to run the :Cheaty command:

Lua :command callback: .../lv/site/pack/pckr/opt/cheaty.nvim/lua/cheaty/window.lua:36: attempt to index global 'buffer' (a nil value)
stack traceback:
        .../lv/site/pack/pckr/opt/cheaty.nvim/lua/cheaty/window.lua:36: in function 'create_window'
        .../lv/site/pack/pckr/opt/cheaty.nvim/lua/cheaty/window.lua:89: in function 'toggle'
        ...re/lv/site/pack/pckr/opt/cheaty.nvim/lua/cheaty/init.lua:25: in function <...re/lv/site/pack/pckr/opt/cheaty.nvim/lua/cheaty/init.lua:24>
Press ENTER or type command to continue

Signed-off-by: Guennadi Maximov C <[email protected]>
@DrKJeff16
Copy link
Contributor Author

@StikyPiston The merge deleted some of my edits. Re-integrated them.

Signed-off-by: Guennadi Maximov C <[email protected]>
@StikyPiston
Copy link
Owner

It works again!

I love the implementation, and also the new title for the window, but I would love to be able to specify the cheatsheet in the init.lua file, as an override if present. If that can be implemented, this'll be an instant merge (assuming no more issues arise)

@StikyPiston StikyPiston self-requested a review February 23, 2026 17:58
@DrKJeff16
Copy link
Contributor Author

DrKJeff16 commented Feb 23, 2026

but I would love to be able to specify the cheatsheet in the init.lua file, as an override if present.

What do you mean by that exactly?

Upon first launch the file should get the config.cheatsheet data written into it:

https://github.com/DrKJeff16/cheaty.nvim/blob/4251854180fbd030361b9cf9d19fe87a20ea2ba1/lua/cheaty/window.lua#L16-L18

@StikyPiston
Copy link
Owner

Oh, I had forgotten to actually test it. Sorry!

Ready to merge then, thanks for the contribution!

@StikyPiston StikyPiston merged commit a8a36e6 into StikyPiston:main Feb 23, 2026
2 checks passed
@DrKJeff16 DrKJeff16 deleted the refactor/live-editing branch February 23, 2026 18:13
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.

[FEAT] Use live editing instead of fixed value?

2 participants