-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Persistent undos #67
Comments
@isquack No worries with the issues! keep bringing em :D . Also for the persistent undos , I have no idea about those . Could you write your vimscript code for it so I'd at least convert it into lua for now , I'll take a look at it later. |
If there persistent undos there have to be cache like file right. I mean you could set it up using the command in nvim. So it is better that way. Some people may like the default undo. |
Full documentation on neovim website |
Well actually the thing is you have to create a undo directory in a convenient spot in .local /nvim or .config/nvim in the installation script and the last two commands in any of the lua script's loaded in nvchad. |
I would recommend undodir on ~/.config/nvim/persistent-undo/ |
And also don't forget to add this line to install.sh |
Someone who is not familiar to thing like persistent undo may struggle and find it frustrating. It's better for their own configuration. |
Will make a pr |
If a pr like that actually got merged,some n00bs are gonna have a very bad time |
Then add a couple lines explaining what persistent undos are in 3 to 4 lines and ask whether they want persistent undos. |
Are you that food that just types password whenever prompted for. |
I ain't that is why I use paru |
1.5k stars!!!. |
I use void musl... |
Aur* |
You can't be safe if u use path and it can be worse because it can execute bad commands from the scripts |
Paru* |
no worries |
ima go rest now. Tired. |
Can u try out void linux musl in a vm, it's great.no pressure though |
@isquack Im still not sure what these persistant undos mean , can you show me a demo? just create a undo.vim file and add your vimscript config for undos in it. Add this line in init.lua , at the last line cmd("source undo.vim") |
I will rn. |
First create a vimscript in a convenient spot |
Second,source it through init.lua |
And now create a directory for this |
Now put these lines in the vimscript. |
Now create a useless file and put some random nonsense in it. |
wq that file |
Now go back to that file and try to undo the changes by typing u |
It's gonna complain like this |
Now uncomment the line in init.lua |
Create another useless file and type random nonsense. |
And come back to the file and try to undo by typing u. |
If u have any doubts.please tell here and I'll solve it. |
If stuff doesn't work.then enclose this line in vimscript like this. |
all of this seems very complex xD |
Just do it bro.it isn't that complex once you do it |
It is complex
…On Wed, 16 Jun 2021, 9:34 am Banana man, ***@***.***> wrote:
Just do it bro.it isn't that complex once you do it
I explained in a long manner,so it may seem like so but it isn't.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#67 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT6BKBCPH6MPX25WJ7LXITDTTAPGVANCNFSM46W7RKMA>
.
|
I don't know why we should put persistent undos in the config |
it is bloated |
this is not minimal. It is personal preference. |
Well whatever, it's not an important thingy. |
I will close the issue, it isn't noob friendly and shouldn't be added into the main config ig. |
@isquack show me the vimscript code regarding to it , and we'll add its instructions in the wiki! |
Sorry for making multiple issues 2day, but the faster the development the better.the config is really good but there is one thing that bothers me.
Persistent undos.
It's super easy to do in vimscript but I didn't wanna ruin the script's speed and adding vimscript to it,it doesn't include any vimscript yet.
I don't know lua and I don't even know if it's possible in lua.
So please add this feature.
It's not available in lunarvim by default which is also weird and only spacevim has this.but spacevim is slow and bloated.
The text was updated successfully, but these errors were encountered: