-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add dynamic-slots #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the smaller requested changes:
- please use stylua to use this project's formatting standard, the diff is otherwise hard to read
- it is not really clear to me what the difference between static and original slot behavior is supposed to be. I'm also not even sure what the use case for rotating between 26 slots would be?
9790c1e
to
e1fda53
Compare
offtopic question...Is there a way to have lua_ls and stylua at same time and it will automatically chose what to use depending on project dotfiles, and if there are none then prefer one over other? |
new config option dynamicSlots can have 3 states: 1. static -> use static slots, default behaviour 2. original -> works as original neovim recording impl 3. rotate -> rotates through letters specified in slots[]
5ecd63a
to
3a27b1b
Compare
sorry I wanted to make it easier for you to review... I encountered bug with "original" state. To replicate:
|
original means that you press |
Before you invest even more time into this: let me repeat that it is still not clear to me what problem this PR solves.
As it stands right now, I am not convinced that the PR adds enough benefit to justify merging it. |
I like that I can yank macros, edit them, have notification when recording etc, however I don't like that I have to specify them and manually switch between them when I need to have 2 macros at same time. Thus if someone wants those features they can either use |
So the benefit of
Thus, I think reducing this PR to just adding the |
I recorded 3 macros (reg I accidentally pressed
What you mean? |
Imo, the rare case of saving one key stroke here simply does not justify the amount of complexity added by that feature. As an open source maintainer I have to weigh benefit and future maintenance cost, sorry. The benefit of All in all, the case for |
Sure np, your project... Imo the code for Is there anything you would like me to do with |
Remove I think the simplest solution to start with |
As far as I can tell, most nvim plugins use stylua. Reason being that it's easier to add to a ci pipeline and also more established, at least for formatting. I personally only use stylua for formatting and never worked in a project that uses lua_ls. If you work on some projects that use stylua and others that use lua_ls, you could write a small custom function that calls the respective formatting command depending on the presence of a stylua.toml. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor point, otherwise looks good
Thanks for the PR! |
new config option dynamicSlots can have 3 states:
I'm now reading I didn't need to edit
.txt
, oops. I tried implementing multiple features in single file I hope they will work after splitting. Sorry for formatting seems likelua_ls
behaves differently than stylua.