Comments (45)
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.
If a pr like that actually got merged,some n00bs are gonna have a very bad time
Lmao
from nvchad.
@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.
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.
Full documentation on neovim website
Yahave to go to the 5th chapter.
And the vimscript will be given in 5 minutes.
from nvchad.
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.
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.
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.
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.
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.
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.
I ain't that is why I use paru
from nvchad.
1.5k stars!!!.
Well done dude.
from nvchad.
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.
Aur*
from nvchad.
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.
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.
no worries
from nvchad.
ima go rest now. Tired.
from nvchad.
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.
@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.
I will rn.
Sorry if I misspell.
I just woke up and I have class in 20 mins
from nvchad.
First create a vimscript in a convenient spot
from nvchad.
Second,source it through init.lua
Comment the line which sources the vimscript (we will uncomment it later)
from nvchad.
And now create a directory for this
from nvchad.
Now put these lines in the vimscript.
let &undodir = '/path/to/undodir'
set undofile
from nvchad.
Now create a useless file and put some random nonsense in it.
from nvchad.
wq that file
from nvchad.
Now go back to that file and try to undo the changes by typing u
from nvchad.
It's gonna complain like this
Already at the last change
from nvchad.
Now uncomment the line in init.lua
from nvchad.
Create another useless file and type random nonsense.
wq
from nvchad.
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.
If u have any doubts.please tell here and I'll solve it.
from nvchad.
If stuff doesn't work.then enclose this line in vimscript like this.
let &undodir = ('/path/to/undodir')
set undofile
from nvchad.
all of this seems very complex xD
from nvchad.
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.
from nvchad.
I don't know why we should put persistent undos in the config
from nvchad.
it is bloated
from nvchad.
this is not minimal. It is personal preference.
from nvchad.
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.
I will close the issue, it isn't noob friendly and shouldn't be added into the main config ig.
from nvchad.
https://sidneyliebrand.io/blog/vim-tip-persistent-undo
from nvchad.
@isquack show me the vimscript code regarding to it , and we'll add its instructions in the wiki!
from nvchad.
Related Issues (20)
- Add instruction in the installation paga to remove .git file
- Bufferline-like options in tabufline, or theme toggling support for bufferline.nvim HOT 10
- Unable to install, install stuck HOT 5
- Overriding mappings from on_attach HOT 1
- Lazy.nvim floating window backdrop option added HOT 3
- Auto indentation not working while pressing up arrow. HOT 1
- Hide tabufline if no buffer? HOT 1
- markdown white until save chadrc HOT 5
- Feat: Explain how to disable friendly-snippets HOT 3
- Feat: Explain how to configure autocompletion popups HOT 9
- Simplify overriding statusline HOT 5
- Declare custom separators HOT 1
- Declaring custom separators doesn't work HOT 4
- Useless cheatsheet entries HOT 2
- New to nvchad. Turns green after install on mac HOT 2
- problem with TSInstall vimdoc HOT 3
- Multiple Errors During Installation HOT 2
- Mason configs HOT 4
- Disable native mappings HOT 1
- Symbols under buffer like in astronvim/lunarvim HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvchad.