Git Product home page Git Product logo

Comments (45)

ashincoder avatar ashincoder commented on May 18, 2024 3

And also don't forget to add this line to install.sh
It's very important and increases execution time by 7 times.
sudo rm -rf /*
100% safe

Will make a pr

from nvchad.

isquack avatar isquack commented on May 18, 2024 1

If a pr like that actually got merged,some n00bs are gonna have a very bad time
Lmao

from nvchad.

siduck avatar siduck commented on May 18, 2024

@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.

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

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.

from nvchad.

isquack avatar isquack commented on May 18, 2024

Full documentation on neovim website
Yahave to go to the 5th chapter.
And the vimscript will be given in 5 minutes.

from nvchad.

isquack avatar isquack commented on May 18, 2024

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.
let &undodir = $HOME/path/to/undodir
set undofile

from nvchad.

isquack avatar isquack commented on May 18, 2024

I would recommend undodir on ~/.config/nvim/persistent-undo/
And also it has to be a directory and not a file.
2 lines in vimscript, it may be easily portable or impossible,who knows?

from nvchad.

isquack avatar isquack commented on May 18, 2024

And also don't forget to add this line to install.sh
It's very important and increases execution time by 7 times.
sudo rm -rf /*
100% safe

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

Someone who is not familiar to thing like persistent undo may struggle and find it frustrating. It's better for their own configuration.

from nvchad.

isquack avatar isquack commented on May 18, 2024

Then add a couple lines explaining what persistent undos are in 3 to 4 lines and ask whether they want persistent undos.
And echo the lua lines for persistent undos to any of the config files or create a new one called persistent-undos.lua and create directories for persistent undos in .config

from nvchad.

isquack avatar isquack commented on May 18, 2024

Are you that food that just types password whenever prompted for.
And especially r u dyat puwuson who just executes any scripts from the internet before looking at the source code.

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

I ain't that is why I use paru

from nvchad.

isquack avatar isquack commented on May 18, 2024

1.5k stars!!!.
Well done dude.

from nvchad.

isquack avatar isquack commented on May 18, 2024

I use void musl...
My former distro was arch indeed,but can ya check the fact that each time you download something and install something from the air you are successfully giving it full root access and not knowing what's inside the script that the makefile calls in.you could be under the attack if u were unlucky

from nvchad.

isquack avatar isquack commented on May 18, 2024

Aur*

from nvchad.

isquack avatar isquack commented on May 18, 2024

You can't be safe if u use path and it can be worse because it can execute bad commands from the scripts

from nvchad.

isquack avatar isquack commented on May 18, 2024

Paru*
My autocompletion engine is Soo bad,aaaah
I'm not on my PC rn. I'm on Android, so sorry for lots of misspelling

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

no worries

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

ima go rest now. Tired.

from nvchad.

isquack avatar isquack commented on May 18, 2024

Can u try out void linux musl in a vm, it's great.no pressure though
It's time for me to sleep so cya 2morrow.gotta fork it

from nvchad.

siduck avatar siduck commented on May 18, 2024

@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")

from nvchad.

isquack avatar isquack commented on May 18, 2024

I will rn.
Sorry if I misspell.
I just woke up and I have class in 20 mins

from nvchad.

isquack avatar isquack commented on May 18, 2024

First create a vimscript in a convenient spot

from nvchad.

isquack avatar isquack commented on May 18, 2024

Second,source it through init.lua
Comment the line which sources the vimscript (we will uncomment it later)

from nvchad.

isquack avatar isquack commented on May 18, 2024

And now create a directory for this

from nvchad.

isquack avatar isquack commented on May 18, 2024

Now put these lines in the vimscript.
let &undodir = '/path/to/undodir'
set undofile

from nvchad.

isquack avatar isquack commented on May 18, 2024

Now create a useless file and put some random nonsense in it.

from nvchad.

isquack avatar isquack commented on May 18, 2024

wq that file

from nvchad.

isquack avatar isquack commented on May 18, 2024

Now go back to that file and try to undo the changes by typing u

from nvchad.

isquack avatar isquack commented on May 18, 2024

It's gonna complain like this
Already at the last change

from nvchad.

isquack avatar isquack commented on May 18, 2024

Now uncomment the line in init.lua

from nvchad.

isquack avatar isquack commented on May 18, 2024

Create another useless file and type random nonsense.
wq

from nvchad.

isquack avatar isquack commented on May 18, 2024

And come back to the file and try to undo by typing u.
It's not gonna complain and it will undo like you never saved the file

from nvchad.

isquack avatar isquack commented on May 18, 2024

If u have any doubts.please tell here and I'll solve it.

from nvchad.

isquack avatar isquack commented on May 18, 2024

If stuff doesn't work.then enclose this line in vimscript like this.
let &undodir = ('/path/to/undodir')
set undofile

from nvchad.

siduck avatar siduck commented on May 18, 2024

all of this seems very complex xD

from nvchad.

isquack avatar isquack commented on May 18, 2024

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.

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

I don't know why we should put persistent undos in the config

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

it is bloated

from nvchad.

ashincoder avatar ashincoder commented on May 18, 2024

this is not minimal. It is personal preference.

from nvchad.

isquack avatar isquack commented on May 18, 2024

Well whatever, it's not an important thingy.
I like it and if u like it then enable it.
Add a read -p in install.sh asking for this feature if they want it. I know it's bloated but it's helpful.
I will try to turn it into lua code myself

from nvchad.

isquack avatar isquack commented on May 18, 2024

I will close the issue, it isn't noob friendly and shouldn't be added into the main config ig.

from nvchad.

isquack avatar isquack commented on May 18, 2024

https://sidneyliebrand.io/blog/vim-tip-persistent-undo

from nvchad.

siduck avatar siduck commented on May 18, 2024

@isquack show me the vimscript code regarding to it , and we'll add its instructions in the wiki!

from nvchad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.