Good stuff. Worth noting though that if you're doing this on Linux you'll want to change the line in plugins/init.lua from local liblldb_path = extension_path.. "lldb/lib/liblldb.dylib" to local liblldb_path = extension_path .. "lldb/lib/liblldb.so" or your debugger won't work. (Also not sure why youtube is trying to make a link out of the previous line, but ignore that.)
On windows would it work with .lib? I get the error: ...adapter/codelldb exited with code 101 Couldn't connect to 127.0.0.1 :${port}: ECONNREFUSED And it does not work.
@@slowdownbot7617 on windows you want the following two changes: codelldb_path = extension_path .. "adapter\\codelldb.exe" liblldb_path = extension_path .. "lldb\\bin\\liblldb.dll"
In a vanilla setup, and I'll never understand why anyone changes it to space. I enjoy typing fast and having tab completions in insert mode, so \ is the better choice.
This is where people lose me. neovim has a plugin manager built it, why use mason? why install more and more and more and more software? The exact same reason I ran away from react, node, npm and all that crap and exactly the same reason I use vim or neovim over sublime, vscode or whatever else is out there. That being said, nice freaking video!
AstroNvim sets up all this language support for Rust by just like one line call to their AstroCommunity packs. Because all these things should be done by default.
Hello! I ask from ignorance, sorry if anyone is offended, why would you want to use Neovim instead of an IDE like VS Code? Isn't it more complicated to work from a terminal, while with an IDE everything is faster and simpler?
Depends what you mean by "everything is faster with an IDE", what are we measuring? Time to set up a working configuration? Regardless, my answer to your question is a rather subjective one. Pretty much depends what tool(s) you're most comfortable with. I've been using Vim for aprox 20 years and recently Neovim, I've touched Intellij products, MS Studio, Eclipse, Netbeans ... you get the gist, but I could never settle for any of them. I'm also coming from a sys admin background from back in the days, when I'd had to ssh into a machine and do my work there - V/im was 100% of the times my best friend. Granted, Vim has a steep learning curve, but once it gets into your fingertips there's no way back. The code editing gymnastics that's available in Vim has no match in any of the IDEs. Anyway, my point here is that a comparison between Vim and any IDEs is irelevant. Use whatever option you're most comfortable with.
neovim can use all the features of vscode and has keybinds that are easier to learn. If u have watched theprimagen code on stream, you can see how quickly he can move with a basic neovim setup.
run this in an administrator powershell: rustup component add rust-analyzer Then to test it's working run: rust-analyzer --version should fix issue with rust analyzer not being properly installed by Mason
Looks like you're just one step away from REALLY throwing the mouse away: also throwing MacOS out the window and using Linux with a tiling window manager like a pro.
Worth mentioning is that this setup doesn't seem to work well with the standard MacOS Terminal program, which doesn't support features like true colors. I recommend wezterm, but other modern terminals should work as well.
just a suggestion: suspend the microphone holder so it does not capture the sound of your keystrokes. I mean, keystrokes are fine but instead we hear a muffled sound like constantly hitting the desk with something and is annoying for those of us who use headphones.
I cant wait for Microsoft to provide first party support for Rust in Visual Studio. I have to use Visual Studio Code and I'd love to use MSVS. I dont understand why it isnt implemented like C++ is when MS wants to use Rust more and more but hey....
@@henryvaneyk3769 I use IntelliJ when I do Java...which used to be on a daily and now only occurs once a year. AFAIK you either have to use a wonky plugin or pay money for Rust Rover to develop Rust using JetBrains and no thank you. I love developing C# using Visual Studio and I'd like that type of Linting and Debugging for Rust
Hey, i don't know if that's the right place to ask but uh.. when i try to install nvchad on neovim windows it bluescreens (consistently) and when i try doing the same within windows subsystem for linux it just doesn't load nvchad. I also tried using 1 other config package other than nvchad but it finished installing with a bunch of errors reported and i just didn't trust this installation to be stable... Do you know of any solutions?
@@rasibn I installed neovim fine, just that when i do the nvchad install script it doesnt work and bluescreens for some reason, sorry, my bad i unspecified that... (i edited the comment now...)
i don't understand the point : if your are comfortable with vim/neovim keyboards so 3/4 of the features seem irrelevent to me the last recommandation 🤮 : LLM for programming (and most of the time) is garbage
A bEaUtIfUl, ViSuAl DeBuGgEr! Neovim is my favorite editor, but the dap-ui plugin is far from my favorite interface. It's just the best available so far.
To enable VS Code-like inlay hints with " + i", add the follwing to the main init.lua file- vim.keymap.set("n", 'i', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({0}),{0}) end)
reason why you shouldn't use lazyvim, nvchad, lunarvim, etc. is the same as why you shouldn't use arch-install you're using something you didn't build. you don't know how it works, you don't know what you can use, you have to learn the designed workflow instead of building your own. and you're gonna end up rewriting half of the configs anyway. just spend the day or two understanding nvim, so you can save a year or two using it.
@@frittex I did that before. I just don't have enough time to re-invent the wheel every single time, when I can simply use the tool. Nowadays I just do not have as much time as I had almost 25years ago, when I was also compiling Gentoo from different stages, as well as micro optimizing my kernel and so on, and I patiently waited for days for the process to be complete. You have that time - good for you, you can play with the config , rewriting every single line of it if you'd like and there is nothing wrong wth that. I doesn't work for me though.. all the best.
@@oleksandrkovalov1543 I understand your logic, but at this point, in my opinion, you should be using VSCode with vim motions (or any other editor that supports them)
@@frittex I would've said just use vanilla Vim and configure over time, but that really doesn't work for the majority of modern day developers. Of course, I've had an advantage there in that I've been carrying forward across multiple systems the same config that I used with Vim on Win98.
just for clarification at 3:16: using rm -rf dir is immensely dangerous, anything that is deleted using this way is certifiably lost forever. best to just move to folder to somewhere else or directly into the trashbin.
essentially zed is neovim speed + vscode out of the box experience =) So, not sure what are you talking about, you can't run custom neovim over ssh as well, you would get default vim only out of the box
imho, sorry, nobody asked, but! it would be much better to make video more friendly. Just instead of VIM, maybe VS CODE?? Yes, some people will hate that question, but yo, not a lot of ppl have ZERO awareness of quitting file after typing `vim ` (most of the ppl just freaking altF4 that beach) Just make it ezier, for the normie bros. (i use nvim tho) P.S. Bogdan, not ironically, thank you for your content. It is really helpful!
It's not for everyone for sure, but do realize this video is not intended to 'sell' neovim, only to show that it can become a very capable Rust editor if you want it to. Most aspects that differentiate are not mentioned, so it is impossible to make an informed decision based on this, of course. If you are content, the by all means, don't worry about it. However, if you are often wishing you could change this or that feature, or customize something, but there isn't an option for it, then maybe look into it a bit more.
Get your *FREE 4-Day Rust training* :
letsgetrusty.com/bootcamp
Crazy how i started nvim 3 weeks ago and you came out with this vid. Thanks so much.
I started TWO DAYS BEFORE he put this out!
Vim/Neovim mention ! Let's go !!!
Go mentioned, let's rust !!!
0:33 "keyboard exclusively as God intended" for the win
7:50 "dap-ui my boi"
~Picollo to Gohan probably
More like bully maguire
@@TheAlexgoodlife th-cam.com/users/shorts37chTU07B8A
I was trying to build a neovim environment to do Rust coding and you were very helpful!
Your videos were very easy to follow.
as God intended! great video 😎
Good stuff. Worth noting though that if you're doing this on Linux you'll want to change the line in plugins/init.lua from
local liblldb_path = extension_path.. "lldb/lib/liblldb.dylib"
to
local liblldb_path = extension_path .. "lldb/lib/liblldb.so"
or your debugger won't work. (Also not sure why youtube is trying to make a link out of the previous line, but ignore that.)
On windows would it work with .lib?
I get the error:
...adapter/codelldb exited with code 101
Couldn't connect to 127.0.0.1 :${port}: ECONNREFUSED
And it does not work.
@@slowdownbot7617 on windows you want the following two changes:
codelldb_path = extension_path .. "adapter\\codelldb.exe"
liblldb_path = extension_path .. "lldb\\bin\\liblldb.dll"
@@slowdownbot7617 did you manage to make debug work on windows? i'm trying but i'm getting the same error ECONNREFUSED
@@Gabonidazyes, you need to change the paths. I used the following:
\\extensions\\
adapter\\codelldb.exe
lldb\\bin\\lldb.lib
@@slowdownbot7617 Same here :( Did you manage to make it work?
didnt mental outlaw just make the same video
came for this
exactly
he did
darn. My 2 favorite people. Guess they have been compromised by the cia. They are lizard people now.
But his video has more info for beginners i guess
Thank you very much! I'm so happy to see nvim has developed so much!
finally I got it working, Thank you very much.
I adore AstroNvim and is my forst choice for writing code.
Same, I can't be bothered learning the nvim api and lua. Astro is a great choice for people like me.
Exactly. Got it from boilerplate.
Same here.
Great video. It helped me sort out a few issues in my config.
You can paste without entering insert mode. Just press p
Yeah you can tell I'm new to vim haha
Yo
I swore never to use nvim but this video just made me change my mind 😂❤
Cool! Now I’m getting more motivated in learning Rust
First we had mental outlaw and luke smith controversy. Now its gonna be mental outlaw and lets get rusty controversy
Bring it
Thanks very useful video.
Now letsgetrusty is officially part of the cool-kid-gang 🎉🥳🎉
This is golden.
So straight forward that my eyes went cross.
9:32 Acschhhhhually the key is \ by default, but most people remap it to space
Acshhhhhually the key is set to space by default when using nvchad, which this video is.
In a vanilla setup, and I'll never understand why anyone changes it to space. I enjoy typing fast and having tab completions in insert mode, so \ is the better choice.
This is where people lose me.
neovim has a plugin manager built it, why use mason? why install more and more and more and more software?
The exact same reason I ran away from react, node, npm and all that crap and exactly the same reason I use vim or neovim over sublime, vscode or whatever else is out there.
That being said, nice freaking video!
Great guide thanks for sharing.. I wonder if there is a way to show the inferred type of the variables, like the Vscode does in grey color or similar
Hi quick question. I don't have any configs when I run the debugger so I end up with an error. Can you explain me how to add configs to the dap?
Rust + Neovim = 👌
Bro this is 🔥🔥🔥
Thanks for the video! Can you set up cargo check or cargo clippy on save or on type?
AstroNvim sets up all this language support for Rust by just like one line call to their AstroCommunity packs. Because all these things should be done by default.
Should I have mustache for use NeoVim? Is it really mandatory?
Yes.
Use Helix, vim-like editor that is written in Rust
i downloaded the initlua and mappings from github and replaced in my config. running dt works but dc doesnt
there's a typo in his config on github, on line 16 of mappings.lua instead of being `"dc"` its `"dc>"` remove the `>` at the end
Learnt lifetimes, proc macros, memory ordering and still can exit neovim
Hello! I ask from ignorance, sorry if anyone is offended, why would you want to use Neovim instead of an IDE like VS Code? Isn't it more complicated to work from a terminal, while with an IDE everything is faster and simpler?
Depends what you mean by "everything is faster with an IDE", what are we measuring? Time to set up a working configuration? Regardless, my answer to your question is a rather subjective one. Pretty much depends what tool(s) you're most comfortable with. I've been using Vim for aprox 20 years and recently Neovim, I've touched Intellij products, MS Studio, Eclipse, Netbeans ... you get the gist, but I could never settle for any of them.
I'm also coming from a sys admin background from back in the days, when I'd had to ssh into a machine and do my work there - V/im was 100% of the times my best friend.
Granted, Vim has a steep learning curve, but once it gets into your fingertips there's no way back. The code editing gymnastics that's available in Vim has no match in any of the IDEs.
Anyway, my point here is that a comparison between Vim and any IDEs is irelevant. Use whatever option you're most comfortable with.
I'd never call vs code IDE. Just an another text editor, like vim/emacs. Jetbrains products are IDEs
Do Neovim and you understand your projects. This IS fast and simple.
neovim can use all the features of vscode and has keybinds that are easier to learn. If u have watched theprimagen code on stream, you can see how quickly he can move with a basic neovim setup.
we use it to have the right to say "I use Neovim BTW"
Vim is the Endgame.
Now do the same for Helix 👍
I also tried neovim in windows and it sucks.
How to do proper configuration for windows?
The issue I am having is it fails to load analyzer.
run this in an administrator powershell: rustup component add rust-analyzer
Then to test it's working run: rust-analyzer --version
should fix issue with rust analyzer not being properly installed by Mason
best video to convince ppl not to use neovim keke
Looks like you're just one step away from REALLY throwing the mouse away: also throwing MacOS out the window and using Linux with a tiling window manager like a pro.
theres tiling window managers for macos too AFAIK
Thanks
Nice :)
What to do if rust-analyzer is unsupported in Mason? 😢
The ultimate Chad guide.
which macos terminal app do you use?
Worth mentioning is that this setup doesn't seem to work well with the standard MacOS Terminal program, which doesn't support features like true colors. I recommend wezterm, but other modern terminals should work as well.
Any plugin that imports missing references/crates at the top of the file automatically? Similarly to how IDEs do it.
nvim
how can i get code actions to work in this ?
just a suggestion: suspend the microphone holder so it does not capture the sound of your keystrokes. I mean, keystrokes are fine but instead we hear a muffled sound like constantly hitting the desk with something and is annoying for those of us who use headphones.
At the end of the day, everyone wants a GUI, then why not install VSCode straight away?
Does refactoring work?
how to enable inlay-hint???
I forked the nvchad starter repo so that I can track my own changes in my fork (instead of just deleting the .git directory).
I cant wait for Microsoft to provide first party support for Rust in Visual Studio. I have to use Visual Studio Code and I'd love to use MSVS. I dont understand why it isnt implemented like C++ is when MS wants to use Rust more and more but hey....
IntelliJ is your friend. Dump Visual Studio.
@@henryvaneyk3769 I use IntelliJ when I do Java...which used to be on a daily and now only occurs once a year.
AFAIK you either have to use a wonky plugin or pay money for Rust Rover to develop Rust using JetBrains and no thank you.
I love developing C# using Visual Studio and I'd like that type of Linting and Debugging for Rust
Hey, i don't know if that's the right place to ask but uh.. when i try to install nvchad on neovim windows it bluescreens (consistently) and when i try doing the same within windows subsystem for linux it just doesn't load nvchad. I also tried using 1 other config package other than nvchad but it finished installing with a bunch of errors reported and i just didn't trust this installation to be stable... Do you know of any solutions?
Hey I installed neovim from Winget on windows terminal and it works fine.
@@rasibn I installed neovim fine, just that when i do the nvchad install script it doesnt work and bluescreens for some reason, sorry, my bad i unspecified that... (i edited the comment now...)
Next video: Nix with Rust.
8:15 why did you not explain where tf all that code came from. I dont want to have to type all of that out.
there's a link
i don't understand the point : if your are comfortable with vim/neovim keyboards so 3/4 of the features seem irrelevent to me
the last recommandation 🤮 : LLM for programming (and most of the time) is garbage
saved me from 2 days of agony, kudos
A bEaUtIfUl, ViSuAl DeBuGgEr!
Neovim is my favorite editor, but the dap-ui plugin is far from my favorite interface.
It's just the best available so far.
I thought you would use zed.
To enable VS Code-like inlay hints with " + i", add the follwing to the main init.lua file-
vim.keymap.set("n", 'i',
function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({0}),{0})
end)
Why it's not Helix setup tutorial?
Coming soon :)
I think helix is not bad too
or you just go with Helix.... and life is beautiful
I used Helix before nvim, not going back. But I might try it again in a couple of years and see what state it's in.
Use Helix and not be able to customize anything. Huge win!
If Helix had 2-3 features that I am missing, then imho it would be vastly superior to Neovim. Maybe some day.
@rasibn I customized a lot of things on my liking. I am pretty happy with the results.
Making a video about that soon as well :)
He looks like Arthur Morgan from RDR2
Harpoon mentioned
What about RustRover? (srsly)
Kakoune >>>>>
Bikeshedding Gaming
Lazyvim does all that automatically? It all comes with Lazyvim out of the box..
reason why you shouldn't use lazyvim, nvchad, lunarvim, etc. is the same as why you shouldn't use arch-install
you're using something you didn't build. you don't know how it works, you don't know what you can use, you have to learn the designed workflow instead of building your own. and you're gonna end up rewriting half of the configs anyway.
just spend the day or two understanding nvim, so you can save a year or two using it.
@@frittex I did that before. I just don't have enough time to re-invent the wheel every single time, when I can simply use the tool. Nowadays I just do not have as much time as I had almost 25years ago, when I was also compiling Gentoo from different stages, as well as micro optimizing my kernel and so on, and I patiently waited for days for the process to be complete. You have that time - good for you, you can play with the config , rewriting every single line of it if you'd like and there is nothing wrong wth that. I doesn't work for me though.. all the best.
@@oleksandrkovalov1543 I understand your logic, but at this point, in my opinion, you should be using VSCode with vim motions (or any other editor that supports them)
@@oleksandrkovalov1543 this is why you just configure once and store the config on git
@@frittex I would've said just use vanilla Vim and configure over time, but that really doesn't work for the majority of modern day developers. Of course, I've had an advantage there in that I've been carrying forward across multiple systems the same config that I used with Vim on Win98.
"lightweight"
could you upload your videos on odysee? i don't use this platform too much
you ruined it all! you should say - "I use Arch, btw"
discuss rust abi
neovim configuration is not trivial
8:12 this is a bit much for us to type
I messed it up bad and then found you had a repo so I could copy these files. you need to open with that point
All of this can be done with the lazy builtin rust config just by uncommenting rust support in the config.
Seriously? Let's spend time on what values most rather than fixing vim to look like cool kids! 😀
just for clarification at 3:16: using rm -rf dir is immensely dangerous, anything that is deleted using this way is certifiably lost forever. best to just move to folder to somewhere else or directly into the trashbin.
Or you can simplify it with 1 step:
1) Install zed
Seems like a hassle running that over ssh.
essentially zed is neovim speed + vscode out of the box experience =) So, not sure what are you talking about, you can't run custom neovim over ssh as well, you would get default vim only out of the box
LazyVim, better docs
...and codium for neovim 😅
First viewer
rust analyzer is the worst LSP ever made it eating my whole system performance
compares it to gopls and clangd show big difference.
second
11 comment
this video is not very helpful for linux users...
imho, sorry, nobody asked, but!
it would be much better to make video more friendly. Just instead of VIM, maybe VS CODE??
Yes, some people will hate that question, but yo, not a lot of ppl have ZERO awareness of quitting file after typing `vim ` (most of the ppl just freaking altF4 that beach)
Just make it ezier, for the normie bros. (i use nvim tho)
P.S. Bogdan, not ironically, thank you for your content. It is really helpful!
first
All this work to get VIM to look like IntelliJ? Nah, I'm good.
It's not for everyone for sure, but do realize this video is not intended to 'sell' neovim, only to show that it can become a very capable Rust editor if you want it to.
Most aspects that differentiate are not mentioned, so it is impossible to make an informed decision based on this, of course. If you are content, the by all means, don't worry about it. However, if you are often wishing you could change this or that feature, or customize something, but there isn't an option for it, then maybe look into it a bit more.
Helix > NeoVim
Just use helix, 0 conf
Well done, thnx
@fabricehategekimana5350
6 hours ago
Vim/Neovim mentioned letgs go @ThePrimeTimeagen . Let him cook