NVChad has had some breaking changes since this video! It's recommended to using the v2.0 branch instead for this video. I'll be doing an updated version of this video again soon!. git clone -b v2.0 github.com/NvChad/NvChad ~/.config/nvim --depth 1
@@dreamsofcodeI am using neovim nvchad but on windows (not through wsl2). And it seems on windows the file structures are different and it’s kind of tough following the tutorial since it’s for neovim on Linux. I was hoping when you do an updated video you could also touch a little bit how to do the config for those running nvchad on windows directly.
If you're following along on your own machine, you'll need to type `th` to bring up the "Set NvChad Theme" window as @Dreams of Code did @1:34. (`` is `space` by default).
Thank you, this has been super helpful! I had been jumping around a bit between LazyVim, Astro, LunarVim, NvChad but now that I followed your setup and read the NvChad docs in detail (highly recommended for better understanding!) I think I finally have a stable base.
I feel like being watched. I was just thinking about starting to learn both neovim and rust at the same time this morning :D thanks for the amazing content
Just followed this tutorial as well after watching your general neovim/nvchad video. Thanks a lot, this will help me to get easier started with Rust which is my plan for the next couple of months.
Thank you for the tutorial! I am learning vim and rust in parallel and your videos really helped me to find the joy in terminal based editors and customising them.
Your tutorials are great, they helped me to finally start using neovim. I was wondering if you could do some tutorial like this for copilot. Making it work wasn't hard but I think we all would appreciate something that is more usable than default settings. Thanks for the tutorial, looking forward the next one!
Thank you! Yes, absolutely. I'll add it to the list. Should be a quick one to get out as well. There's a few copilot plugins as well now and I use a non standard one as it has better integration (imho). Might be good to do a comparison of them.
I attempted this initially but kept running into errors in the console so decided to use the official plugin. If you have a setup that works id love to see it!
If despite doing all of this, linting (the diagnostics in the text editor) doesn't work. I realized that the configuration didn't work if I had installed rust-analyzer with mason. However, installing it with rustup "rustup component add rust-analyzer", worked without issues"
Awesome video! Very informative, clear and to the point. Also the quality of your videos is outstanding mate. Could it be possible to have the dotfiles somewhere for the next video? It could help a lot in order to check the correct configuration at the end of the setup.
I was using vscode until last february and tried to change into nvim but every tutorial I watched had different setup instructions and different methods and all that sttuff. Then I saw you video and setup nvim with rust like this setup. Then I tried installing some plugins for pytthon but the config was complicated. Then I installed helix editor and going good so far. LSP support is good, config is also easier considering that I dont have much experience with modal editors.
Helix is pretty awesome, and has some easy to use defaults whilst keeping very VIM like. I'll probably do a video on setting up Neovim for python at some point as well!
I have some concerns, this is a very good video with a very good quality but it really feels like "magic" or "just works" thing, and as a person who really likes tweaking and especially with knowing the "why" and the "how" I'd really be thankful if there is some sources or docs that can help me to do so : ), and again, this is a very good video, as always ; ).
@@dreamsofcode that might be a great idea, as u can explain the "why" thing and less "to got B do A" thing, no offense tho but i really think that will add a new whole dimension to the videos as they will become more oriented towards inspiring a self help config and independent configuration if that make sens : ) and keep the work up ur doing an amazing job on rising this channel
Good stuff. So complicated! 😮 I managed to get through the whole setup. I saw chris@machine has a 5-hour-long Neovim setup. Perhaps it's why he decided to write the LunarVim project. 😅😊😮
Thank you for providing the git repo. Is there a way to keep the different "custom" repositories separated? For example, it would be nice to be able to keep the rust configuration separated from the c++ instead of trying to merge the two "custom" repositories together.
Hey all! Man Dreams of Code you are as always a Godsend! This setup works incredibly! You literally saved me days of my life. One quick question tho - as a shitty developer coming from JS land and then Go land - Im always forgetting the ; at the end of the statements - do you know either how I could impliment this through rust-tools or of another plugin that does it? Thaaaanks fam
Great tutorial! Is there a way to jump to the proper documentation when typing a command? Because sometimes the floating window states something like "See the [module documentation](self) for details" and I haven't found a way to directly open it.
Thank you so much! Use your videos to move from heavy IDE to Neovim. P.S. So painful to configure lua stuff without strict type system. Dreaming about writing everything in Rust :)
Following along, I got to the debugging section at 7:15, but I have no "RustDebuggables" command present? There are a lot of Rust... commands, but that's not one of them. Any suggestions? I have lldb on my system from xcode, and can see that I can just type 'lldb' into the terminal and does execute.
@@drheck I'm actually not entirely sure what happened, but I got busy and just left it for a couple of days and I just came back to configure a couple of other types of plugins and it's now there when I try to run it in a rust file. Maybe I just needed to manually run a `Lazy sync`
There is! You should be able to combine it easily enough. You'll only want one set of each plugin and then just merge the configurations together i.e. ensure_installed { rust_analyzer } becomes ensure_installed { rust_analyzer, clangd }, etc etc
@@dreamsofcode Wow man never thought I would get a reply. just watched your setting up nvchad video. It was first time ever using nvim. Was a bit confusing and did not understand many things but also learned a lot and was also able to get a basic understanding how things work,how plugins are installed and some other basic stuff. All thanks to you man. Love your work ❤.
I loved this video, but since I don't understand much about Linux, I wanted to understand one thing. For example, if I install nvim, can I configure it and add the plugins I like the most, right? So, is it a good practice to create the configuration files in a folder that doesn't interfere with nvim? Or can I do everything in nvim's folders?
The custom directory is added to the gitignore of NVChad so it should be safe from modification by anything else. You can also set it up as a git repository itself so you can keep your config version controlled!
I am getting clone failed with rust-tools, is this due because the project is archived? also an update using rustaceanvim would be nice, if you recommend it :)
there are so many questions i have about this, isnt mason already installed with nvchad automatically? why not just open :Mason and install rust analyzer there? does whatever we do have benefits to that? is it practically the same?
I prefer to write the configuration as code. This way whenever I move to another machine, my Neovim config is already defined rather than having to remember which dependencies I need to install
@@dreamsofcode Thank you for replying. lldb is installed. I can't access your discord. Apparently it works, I can set breakpoints, when I run :RustDebuggables instead of an arrow I get an R, and with spc+d+u+s the screen splits but no debug info.
On distros other than arch . The version of neovim that is getting installed is 0.6 for some reason. And while upgrading it , it says you’re already on the latest, which is not right. Do you know some fix for that?
@@dreamsofcode that would be great. Because i just started to use nvim for c++, and i have trouble making a shortcut ( F5 ) to compile, and run the c++ file
You can run the code using the RustRunnables command within Neovim. Personally I just open up a terminal to run the code, which you can do using SPC + h in NVChad.
If I try running my console executable with dap, it won't provide any output or react to input. While if I try to debug the same up with lldb directly, the app acts as usual. Moreover, I get lldb-vscode exited with code error in nvim, after the app completes its work (and no errors if I do it with lldb directly).
@@dreamsofcode I am new to rust. So, I am not sure what is blocking call. It's just "hello world" app, with following code in main: println!("Hello, World"); let mut y: String = String::new(); io::stdin().read_line(&mut y).expect("Failed to read line");
For some reason rust-analyzer isn't working, i dont get any code completions after following your steps. Im on NVCHAD, and followed your tutorial for setting it up
Hello, its really annoying to do this everytime especially for beginners. Can you please make a video how do we setup to use LspInstall and such commands. it would be way easier for us
NVChad has had some breaking changes since this video! It's recommended to using the v2.0 branch instead for this video. I'll be doing an updated version of this video again soon!.
git clone -b v2.0 github.com/NvChad/NvChad ~/.config/nvim --depth 1
I'm excited to wait for future updates.
Subscribed for that
@@AM-yk5ydnow I have to deliver!
i was having a bad time trying to configure and only now i read here lol thanks gonna wait the update
@@dreamsofcodeI am using neovim nvchad but on windows (not through wsl2). And it seems on windows the file structures are different and it’s kind of tough following the tutorial since it’s for neovim on Linux. I was hoping when you do an updated video you could also touch a little bit how to do the config for those running nvchad on windows directly.
That presentation was crazy complicated. I understand most everything, but a few details escaped me. It just gets so deep with so many plugins.
might as well say what you didn't get
maybe others can help
You mean Rust ™
😭😭😭
R*st
R***st
Crablang
Hahahaha
If you're following along on your own machine, you'll need to type `th` to bring up the "Set NvChad Theme" window as @Dreams of Code did @1:34. (`` is `space` by default).
Thanks for mentioning this! It's also in my NVChad video as well which goes into more details on these commands.
@@dreamsofcode Can't find your NVChad video for the life of me.
@@zkratch th-cam.com/video/Mtgo-nP_r8Y/w-d-xo.html I'll add it as a link.
Thanks, was looking for that.
Thank you very much.
this is perfect, finally a configuration that is beginner friendly and not just BLAZINGLY fast
This video is so good. It was difficult for me to get rust configured correctly after watching your first video. I greatly appreciate this.
thank YOU for uploading all this code to github! i would never imagined myself to rewrite all that code
Thank you, this has been super helpful! I had been jumping around a bit between LazyVim, Astro, LunarVim, NvChad but now that I followed your setup and read the NvChad docs in detail (highly recommended for better understanding!) I think I finally have a stable base.
I agree, reading the docs is worthwhile!
I feel like being watched. I was just thinking about starting to learn both neovim and rust at the same time this morning :D thanks for the amazing content
Dude, same I just installed neovim not even 2 hours ago
W
Now I'm doing the same thing:)
amazing how much material can be packed into 11mins ! this really helped me on my way to becoming a rustacean :)
Just followed this tutorial as well after watching your general neovim/nvchad video. Thanks a lot, this will help me to get easier started with Rust which is my plan for the next couple of months.
I'm glad it helped!
Thank you for the tutorial!
I am learning vim and rust in parallel and your videos really helped me to find the joy in terminal based editors and customising them.
I'm very glad to hear that! I hope you're enjoying learning rust as well!
Your tutorials are great, they helped me to finally start using neovim. I was wondering if you could do some tutorial like this for copilot. Making it work wasn't hard but I think we all would appreciate something that is more usable than default settings. Thanks for the tutorial, looking forward the next one!
Thank you!
Yes, absolutely. I'll add it to the list. Should be a quick one to get out as well. There's a few copilot plugins as well now and I use a non standard one as it has better integration (imho).
Might be good to do a comparison of them.
@@dreamsofcode support !!
would love to have a dedicated video on DAP
formatting can be achieved by using the built in lsp client. I'd simply use an auto command for formatting on save
I attempted this initially but kept running into errors in the console so decided to use the official plugin. If you have a setup that works id love to see it!
Thank you, great walk through
thanks a lot
Please do a more detailed nvim dap tutorial!
Quality is on another level 🔥🥵
Thank you!
"I am using Arch btw" , you made this video to say this
Please do more rust videos.
If despite doing all of this, linting (the diagnostics in the text editor) doesn't work. I realized that the configuration didn't work if I had installed rust-analyzer with mason. However, installing it with rustup "rustup component add rust-analyzer", worked without issues"
i figured that might've been my issue too
Awesome video! Very informative, clear and to the point. Also the quality of your videos is outstanding mate. Could it be possible to have the dotfiles somewhere for the next video? It could help a lot in order to check the correct configuration at the end of the setup.
Thank you for the feedback 🙏. That's a great idea. I'll make sure to do that.
I was using vscode until last february and tried to change into nvim but every tutorial I watched had different setup instructions and different methods and all that sttuff. Then I saw you video and setup nvim with rust like this setup.
Then I tried installing some plugins for pytthon but the config was complicated. Then I installed helix editor and going good so far.
LSP support is good, config is also easier considering that I dont have much experience with modal editors.
Helix is pretty awesome, and has some easy to use defaults whilst keeping very VIM like. I'll probably do a video on setting up Neovim for python at some point as well!
OMG, gimme that wallpaper, i need it!!!
Nice videos by the way, big fan!!!
Heads up! It looks like rust-tools.nvim no longer works. Instead it's recommended to use mrcjkb/rustaceanvim
Please check my repo for how to use it!
good looking out! thank you!!!
I got it working on Windows after so long :D had a problem with the language server, which took me 10 hours to debug. Now I know..
Can you please re-make this video. linking to a repo that doesn't even have a readme is incredibly unhelpful.
I have some concerns, this is a very good video with a very good quality but it really feels like "magic" or "just works" thing, and as a person who really likes tweaking and especially with knowing the "why" and the "how" I'd really be thankful if there is some sources or docs that can help me to do so : ), and again, this is a very good video, as always ; ).
It might be useful if I do a video on creating a Neovim plugin!
@@dreamsofcode that might be a great idea, as u can explain the "why" thing and less "to got B do A" thing, no offense tho but i really think that will add a new whole dimension to the videos as they will become more oriented towards inspiring a self help config and independent configuration if that make sens : ) and keep the work up ur doing an amazing job on rising this channel
As always a great video!
Thank you so much! This is the first video after I had acoustically treated my office! Helped speed up the process so much
I totally agree with that
Good stuff. So complicated!
😮
I managed to get through the whole setup.
I saw chris@machine has a 5-hour-long Neovim setup. Perhaps it's why he decided to write the LunarVim project.
😅😊😮
One idea from the primeagen nvim videos, you could display which keyboard keys you press for vim beginners, there must be some program to do this
Yes, I think this is a good idea! I'll look into what program exists for Linux
I would love to see a video more in depth about NVDapp.
I shall add it to the backlog!
Thank you for providing the git repo. Is there a way to keep the different "custom" repositories separated? For example, it would be nice to be able to keep the rust configuration separated from the c++ instead of trying to merge the two "custom" repositories together.
Hey all! Man Dreams of Code you are as always a Godsend! This setup works incredibly! You literally saved me days of my life. One quick question tho - as a shitty developer coming from JS land and then Go land - Im always forgetting the ; at the end of the statements - do you know either how I could impliment this through rust-tools or of another plugin that does it? Thaaaanks fam
Please a more detail video about dap ui PLEASSEE
Absolutely. There's a lot to explore!
Yes do a video on dap ui
Great tutorial!
Is there a way to jump to the proper documentation when typing a command? Because sometimes the floating window states something like "See the [module documentation](self) for details" and I haven't found a way to directly open it.
This is really great! thank you so much for putting this together!!!
love this, thank you for making it.
Thank you so much! Use your videos to move from heavy IDE to Neovim.
P.S. So painful to configure lua stuff without strict type system. Dreaming about writing everything in Rust :)
I agree! Rust + Neovim config would be really nice. Thank you for the feedback.
It will be quite useful the same type of video but Python instead of Rust
It is in the backlog!
I needed this. THANK YOU SO MUCH.
I'm glad it was useful!
Fan of your videos! Can you create a playlist about Arch Linux best practices or ricing?
and here i thought all i needed to do was to have neovim lsp going and have rust analyzer and rust tools installed.
Fireship vibes.
Following along, I got to the debugging section at 7:15, but I have no "RustDebuggables" command present? There are a lot of Rust... commands, but that's not one of them. Any suggestions? I have lldb on my system from xcode, and can see that I can just type 'lldb' into the terminal and does execute.
If you join my discord I can help take a look at your config and debug it with you.
Did you solve this? If I run `:Lazy` I can see that nvim-dap is installed but Not Loaded.
@@drheck Are you making sure that rust-tools is loaded on rust filetype?
@@drheck I'm actually not entirely sure what happened, but I got busy and just left it for a couple of days and I just came back to configure a couple of other types of plugins and it's now there when I try to run it in a rust file. Maybe I just needed to manually run a `Lazy sync`
any chance you will make a rustaceanvim set up video?
Thank you so much!! Much appreciated 😊
You saved me, why? - Monkie to Oogway
Great video 😁
Thank you!
Is there any chance so i can combine this with the C++ set up .I will appreciate any help
There is! You should be able to combine it easily enough. You'll only want one set of each plugin and then just merge the configurations together i.e. ensure_installed { rust_analyzer } becomes ensure_installed { rust_analyzer, clangd }, etc etc
@@dreamsofcodeThanks ❤❤
a full guidethruh for nvim dapp, would be amazing < 3
I feel a little bit lost and lost motivation multiple time^^
After I press "r", there is no mention of "cu" to update all the crates. Would it be possible to add that?
You can do so in the mappings file! If you jump on my discord I can help you :)
Any chance you'll cover Neovide?
I can add it to the backlog!
@@dreamsofcode nice
For some reason I get an error all around the place: The same file is required with different names. Any idea on how to solve this issue?
If you jump on my discord it might be easier to share a screen shot of the error you've got!
same issue here
how to solve ?
Hey great video man.❤I was just thinking can you also do a go Lang set up in neovim because I want to use neovim with golang.
Sure! Ill add that to the list as well!
@@dreamsofcode Wow man never thought I would get a reply. just watched your setting up nvchad video. It was first time ever using nvim. Was a bit confusing and did not understand many things but also learned a lot and was also able to get a basic understanding how things work,how plugins are installed and some other basic stuff. All thanks to you man. Love your work ❤.
You forgot something: `:TSInstall rust` for syntax highlighting. Otherwise, an awesome video that has saved me hours of headaches. Thank you!
I always forget to! Hopefully I'm going to have a solution for it one day.
Glad you enjoyed the vdeo!
@@dreamsofcode Try lecithin. j/k
I loved this video, but since I don't understand much about Linux, I wanted to understand one thing. For example, if I install nvim, can I configure it and add the plugins I like the most, right? So, is it a good practice to create the configuration files in a folder that doesn't interfere with nvim? Or can I do everything in nvim's folders?
The custom directory is added to the gitignore of NVChad so it should be safe from modification by anything else. You can also set it up as a git repository itself so you can keep your config version controlled!
Appreciate the feedback btw!
use space + t + h to switch themes!
Rust foundation wants to know your location! 😅😅
Great video btw!
Haha! I decided not to use the rust logo in this video to be safe.
Thank you, I appreciate that!
Thank you man, You are actually an angel, You saved my day :*
I'm glad to hear that!
Nice video but the problem is that it is with chad, it is confusing to set up with my custom nvim setup
Great video! Thank you
Finally, the head-scratching is over
at 4:15 on my installation I get "Module" suggestions, like `seq`, but don't see any "Interface" or "Function" suggestions. new to rust and neovim
What desktop env you use and what console, it looks so clean and i want it xD
Kinda got bored of pure kde on my rust
I use Alacritty and zsh for my terminal. As well as Tmux.
I have a video coming out soon on my Tmux config!
@@dreamsofcode a great, thanks for the helping the community o7
I am getting clone failed with rust-tools, is this due because the project is archived?
also an update using rustaceanvim would be nice, if you recommend it :)
@dreamsofcode have you found a way to get rust-tools to use the cargo installed rust_analyzer instead of the one from Mason?
If you jump on my discord I can help you out some more.
what about adding underlines for mutable variables?
It's on by default in vscode, and I miss it in nvim
Who is this Chad man the narrator keeps putting black and white pictures of in his videos? He's put him in there many times.
I need some help. My rust project needs to take a cli arg, and I cannot configure dap to take the args needed for my project
there are so many questions i have about this,
isnt mason already installed with nvchad automatically?
why not just open :Mason and install rust analyzer there?
does whatever we do have benefits to that? is it practically the same?
I prefer to write the configuration as code. This way whenever I move to another machine, my Neovim config is already defined rather than having to remember which dependencies I need to install
appreciate this video!
I'm glad you enjoyed it!
9:47 how do i get this popup working for the crates? the latest version shows and rcu works but no auto complete
Even if I set rustfmt_autosave = 1 in the init function, it get the value 0 when I'm in a buffer with a rust file. Couldn't find the issue
I followed the instructions in arch and the nvim-dap configuration does not work for me. Is any extra configuration necessary?
If you jump on to my discord I can help take a look!
Make sure you have lldb installed as well.
@@dreamsofcode Thank you for replying. lldb is installed. I can't access your discord. Apparently it works, I can set breakpoints, when I run :RustDebuggables instead of an arrow I get an R, and with spc+d+u+s the screen splits but no debug info.
@@pijusmagnificus6382 Same for me
can you do the same video with react ?
This is super helpful. Could you also make video for python?
I absolutely can. I have one in my backlog
Really well done video!!
Thank you!
Thank you kind human / AI / Alien.
I prefer the term goblin 👺
Can you please make a video of your iterm and statusline set up please?
You should be able to view it on my Tmux video! I use Alacritty instead of iterm however.
it would be beneficial to know what commands you're typing sometimes..
Agreed. I've made some steps to improve on that in my more recent episodes.
To all the arch users... Using Gentoo and Open BSD btw
On distros other than arch . The version of neovim that is getting installed is 0.6 for some reason.
And while upgrading it , it says you’re already on the latest, which is not right.
Do you know some fix for that?
You may need to use a Neovim version management tool or build/download from Github.
How would you configure clippy in this setup?
lsp is working ok, but i cant get it to autocomplete std and other builtin libraries
Tell me, please, I'm trying to make auto-completion turn on only when pressing CTRL SPACE, but nothing comes out(
What are the hot keys on Mac? CMD doesn’t work.
For some reason the cargo crates auto completion doesn't work :(
Thanks youuuuuuuu
Awesome videos! Can you do one for Go development?
Yes I can! it's on the queue!
@@dreamsofcode c++ ??
@@hana-gabana7598 Absolutely!
@@dreamsofcode that would be great. Because i just started to use nvim for c++, and i have trouble making a shortcut ( F5 ) to compile, and run the c++ file
Can you do a Java Setup please? i've trying but i can't get it to work
Thanks
Thank you again! ❤️
Suppose the wrote the code in rust how do i run the code, is there a shortcut or should i go again to the terminal to cargo run?
You can run the code using the RustRunnables command within Neovim. Personally I just open up a terminal to run the code, which you can do using SPC + h in NVChad.
your videos are great .. can you help us howto to integrate correctly nvim-dap-ui into NvChad .. thanks in advance
Absolutely. I should be able to do a quick video on this as well.
Please next "The complete configuration for JAVA"
We are still waiting
Hi!. Can you please make a video how to add php setup to this golang setup ?
php is added to the backlog! Is there anything framework specific such as with Laravel?
@@dreamsofcode Thank you! Yes laravel support would be really amazing.
Recently installed NVChad and it didn't even start... Are they only supporting a hyper recent nvim or something?
Ah, answering my own question: WSL has Nvim ~0.4 super old. Nice....
can u please make video configuring nvchad for zig development?
A great idea. I've added it to the backlog!
If I try running my console executable with dap, it won't provide any output or react to input. While if I try to debug the same up with lldb directly, the app acts as usual. Moreover, I get lldb-vscode exited with code error in nvim, after the app completes its work (and no errors if I do it with lldb directly).
Are you using any blocking calls for capturing input?
@@dreamsofcode I am new to rust. So, I am not sure what is blocking call. It's just "hello world" app, with following code in main:
println!("Hello, World");
let mut y: String = String::new();
io::stdin().read_line(&mut y).expect("Failed to read line");
For some reason rust-analyzer isn't working, i dont get any code completions after following your steps. Im on NVCHAD, and followed your tutorial for setting it up
My lua code is covered in 'same file required with different names' errors as well and im not sure if that's related
If you jump on my discord I can help!
Hello, its really annoying to do this everytime especially for beginners. Can you please make a video how do we setup to use LspInstall and such commands. it would be way easier for us
How do you install lldb on windows though?