Ultimate Neovim setup for Rust development

  Рет қаралды 30,571

Let's Get Rusty

Let's Get Rusty

Күн бұрын

Пікірлер: 158
@letsgetrusty
@letsgetrusty 2 ай бұрын
Get your *FREE 4-Day Rust training* : letsgetrusty.com/bootcamp
@Adam-om9si
@Adam-om9si 2 ай бұрын
Crazy how i started nvim 3 weeks ago and you came out with this vid. Thanks so much.
@Duckless137
@Duckless137 Ай бұрын
I started TWO DAYS BEFORE he put this out!
@fabricehategekimana5350
@fabricehategekimana5350 2 ай бұрын
Vim/Neovim mention ! Let's go !!!
@thingsiplay
@thingsiplay 2 ай бұрын
Go mentioned, let's rust !!!
@ntippy
@ntippy 2 ай бұрын
0:33 "keyboard exclusively as God intended" for the win
@yurari_san
@yurari_san 13 күн бұрын
I was trying to build a neovim environment to do Rust coding and you were very helpful! Your videos were very easy to follow.
@marcelo55869
@marcelo55869 2 ай бұрын
7:50 "dap-ui my boi" ~Picollo to Gohan probably
@TheAlexgoodlife
@TheAlexgoodlife 2 ай бұрын
More like bully maguire
@marcelo55869
@marcelo55869 2 ай бұрын
@@TheAlexgoodlife kzbin.info37chTU07B8A
@gekkoe808
@gekkoe808 2 ай бұрын
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.)
@slowdownbot7617
@slowdownbot7617 2 ай бұрын
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.
@gekkoe808
@gekkoe808 2 ай бұрын
@@slowdownbot7617 on windows you want the following two changes: codelldb_path = extension_path .. "adapter\\codelldb.exe" liblldb_path = extension_path .. "lldb\\bin\\liblldb.dll"
@Gabonidaz
@Gabonidaz Ай бұрын
@@slowdownbot7617 did you manage to make debug work on windows? i'm trying but i'm getting the same error ECONNREFUSED
@slowdownbot7617
@slowdownbot7617 Ай бұрын
@@Gabonidazyes, you need to change the paths. I used the following: \\extensions\\ adapter\\codelldb.exe lldb\\bin\\lldb.lib
@camorimd
@camorimd Ай бұрын
@@slowdownbot7617 Same here :( Did you manage to make it work?
@kazeembalogun7182
@kazeembalogun7182 15 күн бұрын
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)
@weiminghu2357
@weiminghu2357 18 күн бұрын
Thank you very much! I'm so happy to see nvim has developed so much!
@hadialkmishe1438
@hadialkmishe1438 2 ай бұрын
didnt mental outlaw just make the same video
@Peshyy
@Peshyy 2 ай бұрын
came for this
@18o4
@18o4 2 ай бұрын
exactly
@alomac8976
@alomac8976 2 ай бұрын
he did
@pluto8404
@pluto8404 2 ай бұрын
darn. My 2 favorite people. Guess they have been compromised by the cia. They are lizard people now.
@vikaspoddar001
@vikaspoddar001 2 ай бұрын
But his video has more info for beginners i guess
@RootsterAnon
@RootsterAnon 2 ай бұрын
I adore AstroNvim and is my forst choice for writing code.
@daniel29263
@daniel29263 2 ай бұрын
Same, I can't be bothered learning the nvim api and lua. Astro is a great choice for people like me.
@Pjiwm
@Pjiwm 2 ай бұрын
Exactly. Got it from boilerplate.
@Mr.BinarySniper
@Mr.BinarySniper 2 ай бұрын
Same here.
@codetothemoon
@codetothemoon 2 ай бұрын
as God intended! great video 😎
@mazinayman4004
@mazinayman4004 2 ай бұрын
You can paste without entering insert mode. Just press p
@letsgetrusty
@letsgetrusty 2 ай бұрын
Yeah you can tell I'm new to vim haha
@mcdermottpa
@mcdermottpa 2 ай бұрын
Great video. It helped me sort out a few issues in my config.
@cabeloDoPardal2
@cabeloDoPardal2 2 күн бұрын
finally I got it working, Thank you very much.
@akshettrj
@akshettrj 2 ай бұрын
First we had mental outlaw and luke smith controversy. Now its gonna be mental outlaw and lets get rusty controversy
@letsgetrusty
@letsgetrusty 2 ай бұрын
Bring it
@ojochegbe_
@ojochegbe_ 2 ай бұрын
Yo I swore never to use nvim but this video just made me change my mind 😂❤
@BohdanTrotsenko
@BohdanTrotsenko 2 ай бұрын
This is golden.
@GameDSS
@GameDSS 29 күн бұрын
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?
@cristhiamtovar9003
@cristhiamtovar9003 2 ай бұрын
Cool! Now I’m getting more motivated in learning Rust
@michaelmueller9635
@michaelmueller9635 2 ай бұрын
Now letsgetrusty is officially part of the cool-kid-gang 🎉🥳🎉
@rey1454
@rey1454 2 ай бұрын
So straight forward that my eyes went cross.
@736939
@736939 2 ай бұрын
Use Helix, vim-like editor that is written in Rust
@GoodmanWed
@GoodmanWed 2 ай бұрын
Thanks very useful video.
@Mawkler
@Mawkler 2 ай бұрын
9:32 Acschhhhhually the key is \ by default, but most people remap it to space
@stevanewald106
@stevanewald106 2 ай бұрын
Acshhhhhually the key is set to space by default when using nvchad, which this video is.
@anon_y_mousse
@anon_y_mousse 2 ай бұрын
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.
@valentinplechuc5710
@valentinplechuc5710 2 ай бұрын
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
@rudolfvaneulenstein9896
@rudolfvaneulenstein9896 Ай бұрын
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.
@serialkiller8783
@serialkiller8783 2 ай бұрын
i downloaded the initlua and mappings from github and replaced in my config. running dt works but dc doesnt
@MaazKhalid
@MaazKhalid 2 ай бұрын
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
@l30n.marin3r0
@l30n.marin3r0 Ай бұрын
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!
@jmanindahizouse
@jmanindahizouse 28 күн бұрын
which macos terminal app do you use?
@tinajastyle
@tinajastyle 2 ай бұрын
Bro this is 🔥🔥🔥
@frankjimenez9407
@frankjimenez9407 2 ай бұрын
Rust + Neovim = 👌
@benibachmann9274
@benibachmann9274 2 ай бұрын
Thanks for the video! Can you set up cargo check or cargo clippy on save or on type?
@gabrielrmunoz
@gabrielrmunoz 2 ай бұрын
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?
@MrDujmanu
@MrDujmanu 2 ай бұрын
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.
@sighupcmd
@sighupcmd 2 ай бұрын
I'd never call vs code IDE. Just an another text editor, like vim/emacs. Jetbrains products are IDEs
@michaelmueller9635
@michaelmueller9635 2 ай бұрын
Do Neovim and you understand your projects. This IS fast and simple.
@rasibn
@rasibn 2 ай бұрын
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.
@itsmenewbie03
@itsmenewbie03 2 ай бұрын
we use it to have the right to say "I use Neovim BTW"
@sdramare864
@sdramare864 2 ай бұрын
Should I have mustache for use NeoVim? Is it really mandatory?
@letsgetrusty
@letsgetrusty 2 ай бұрын
Yes.
@wilder6408
@wilder6408 28 күн бұрын
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.
@geetajuyal7115
@geetajuyal7115 8 күн бұрын
What to do if rust-analyzer is unsupported in Mason? 😢
@theparthsingh
@theparthsingh Ай бұрын
how can i get code actions to work in this ?
@thingsiplay
@thingsiplay 2 ай бұрын
Vim is the Endgame.
@radutomy
@radutomy 2 ай бұрын
Any plugin that imports missing references/crates at the top of the file automatically? Similarly to how IDEs do it.
@chuckocheret4115
@chuckocheret4115 2 ай бұрын
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.
@chuckocheret4115
@chuckocheret4115 2 ай бұрын
I forked the nvchad starter repo so that I can track my own changes in my fork (instead of just deleting the .git directory).
@bstech4803
@bstech4803 2 ай бұрын
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.
@nrosquist
@nrosquist Ай бұрын
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
@MarkusBurrer
@MarkusBurrer 6 күн бұрын
Now do the same for Helix 👍
@meanmole3212
@meanmole3212 2 ай бұрын
Does refactoring work?
@zatochiSiberian
@zatochiSiberian 2 ай бұрын
Thanks
@kaanbilgin8245
@kaanbilgin8245 2 ай бұрын
saved me from 2 days of agony, kudos
@AhnafAbidFahim-h1v
@AhnafAbidFahim-h1v 20 күн бұрын
At the end of the day, everyone wants a GUI, then why not install VSCode straight away?
@siduck_og
@siduck_og 2 ай бұрын
Nice :)
@Kiyuja
@Kiyuja 2 ай бұрын
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
@henryvaneyk3769 2 ай бұрын
IntelliJ is your friend. Dump Visual Studio.
@Kiyuja
@Kiyuja 2 ай бұрын
@@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
@cryptonative
@cryptonative 2 ай бұрын
Learnt lifetimes, proc macros, memory ordering and still can exit neovim
@tom901ful
@tom901ful 2 ай бұрын
The ultimate Chad guide.
@fcolecumberri
@fcolecumberri 2 ай бұрын
I thought you would use zed.
@waynelau3256
@waynelau3256 2 ай бұрын
I think helix is not bad too
@난아스타
@난아스타 2 ай бұрын
how to enable inlay-hint???
@psi4j
@psi4j 2 ай бұрын
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.
@thomb.9013
@thomb.9013 29 күн бұрын
theres tiling window managers for macos too AFAIK
@daephx
@daephx 2 ай бұрын
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.
@kuqmua755
@kuqmua755 2 ай бұрын
Why it's not Helix setup tutorial?
@letsgetrusty
@letsgetrusty 2 ай бұрын
Coming soon :)
@kristoferssolo
@kristoferssolo 2 ай бұрын
Harpoon mentioned
@xX_SushiRoll_Xx
@xX_SushiRoll_Xx 2 ай бұрын
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.
@nrosquist
@nrosquist Ай бұрын
there's a link
@anamoyeee
@anamoyeee 2 ай бұрын
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
@rasibn 2 ай бұрын
Hey I installed neovim from Winget on windows terminal and it works fine.
@anamoyeee
@anamoyeee 2 ай бұрын
@@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...)
@LostRunner0213
@LostRunner0213 2 ай бұрын
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
@juanmacias5922
@juanmacias5922 2 ай бұрын
nvim
@seneketh
@seneketh 2 ай бұрын
What about RustRover? (srsly)
@SorinOltean77
@SorinOltean77 2 ай бұрын
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.
@sergiuoanes4635
@sergiuoanes4635 2 ай бұрын
or you just go with Helix.... and life is beautiful
@daniel29263
@daniel29263 2 ай бұрын
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.
@rasibn
@rasibn 2 ай бұрын
Use Helix and not be able to customize anything. Huge win!
@Nitiiii11
@Nitiiii11 2 ай бұрын
If Helix had 2-3 features that I am missing, then imho it would be vastly superior to Neovim. Maybe some day.
@sergiuoanes4635
@sergiuoanes4635 2 ай бұрын
@rasibn I customized a lot of things on my liking. I am pretty happy with the results.
@letsgetrusty
@letsgetrusty 2 ай бұрын
Making a video about that soon as well :)
@solmateusbraga
@solmateusbraga 2 ай бұрын
Kakoune >>>>>
@eriye92
@eriye92 2 ай бұрын
best video to convince ppl not to use neovim keke
@TenTypekMatus
@TenTypekMatus 2 ай бұрын
Next video: Nix with Rust.
@oleksandrkovalov1543
@oleksandrkovalov1543 2 ай бұрын
Lazyvim does all that automatically? It all comes with Lazyvim out of the box..
@frittex
@frittex 2 ай бұрын
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.
@oleksandrkovalov1543
@oleksandrkovalov1543 2 ай бұрын
@@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.
@frittex
@frittex 2 ай бұрын
@@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)
@drishalballaney6590
@drishalballaney6590 2 ай бұрын
@@oleksandrkovalov1543 this is why you just configure once and store the config on git
@anon_y_mousse
@anon_y_mousse 2 ай бұрын
@@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.
@DonRamonHernestodelaCruz
@DonRamonHernestodelaCruz Ай бұрын
could you upload your videos on odysee? i don't use this platform too much
@thearyanahmed
@thearyanahmed 2 ай бұрын
He looks like Arthur Morgan from RDR2
@jasperzanjani
@jasperzanjani 2 ай бұрын
neovim configuration is not trivial
@ntippy
@ntippy 2 ай бұрын
8:12 this is a bit much for us to type
@ntippy
@ntippy 2 ай бұрын
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
@cowoverthere5485
@cowoverthere5485 2 ай бұрын
Bikeshedding Gaming
@adrian_sp6def
@adrian_sp6def 2 ай бұрын
discuss rust abi
@p99chan99
@p99chan99 2 ай бұрын
"lightweight"
@muhammadharris4470
@muhammadharris4470 2 ай бұрын
All of this can be done with the lazy builtin rust config just by uncommenting rust support in the config.
@ctnguyenvn
@ctnguyenvn 2 ай бұрын
...and codium for neovim 😅
@fluttermaster6148
@fluttermaster6148 2 ай бұрын
Or you can simplify it with 1 step: 1) Install zed
@daniel29263
@daniel29263 2 ай бұрын
Seems like a hassle running that over ssh.
@fluttermaster6148
@fluttermaster6148 2 ай бұрын
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
@halano
@halano 2 ай бұрын
rust analyzer is the worst LSP ever made it eating my whole system performance compares it to gopls and clangd show big difference.
@abdelk.2060
@abdelk.2060 2 ай бұрын
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!
@s1v7
@s1v7 2 ай бұрын
you ruined it all! you should say - "I use Arch, btw"
@erlangparasu6339
@erlangparasu6339 2 ай бұрын
LazyVim, better docs
@charleswheeler3418
@charleswheeler3418 16 күн бұрын
this video is not very helpful for linux users...
@moontracker
@moontracker 2 ай бұрын
Seriously? Let's spend time on what values most rather than fixing vim to look like cool kids! 😀
@Red-Code22
@Red-Code22 2 ай бұрын
First viewer
@phelipe8888
@phelipe8888 2 ай бұрын
11 comment
@cunbex2183
@cunbex2183 2 ай бұрын
Just use helix, 0 conf
@zeroday171
@zeroday171 2 ай бұрын
second
@justabdulmuizz
@justabdulmuizz 2 ай бұрын
first
@henryvaneyk3769
@henryvaneyk3769 2 ай бұрын
All this work to get VIM to look like IntelliJ? Nah, I'm good.
@frydac
@frydac 2 ай бұрын
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.
@T1Oracle
@T1Oracle 2 ай бұрын
Helix > NeoVim
@antergonza6476
@antergonza6476 2 ай бұрын
Well done, thnx
@s.joseph406
@s.joseph406 2 ай бұрын
@fabricehategekimana5350 6 hours ago Vim/Neovim mentioned letgs go @ThePrimeTimeagen . Let him cook
Rust stole C++'s best features
8:47
Let's Get Rusty
Рет қаралды 62 М.
Why Neovim is so much better than Vim now... (Neovim vs Vim)
8:58
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 36 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 140 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,3 МЛН
Rust's second most complicated feature explained
7:48
Let's Get Rusty
Рет қаралды 35 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 318 М.
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 691 М.
Configure Neovim For Easy Rust Development
9:37
Mental Outlaw
Рет қаралды 26 М.
8 deadly mistakes beginner Rust developers make
14:14
Let's Get Rusty
Рет қаралды 171 М.
Is Neovim better than VSCode?
5:30
ByteNinja
Рет қаралды 8 М.
5 things I wish I knew before learning Rust
7:28
Let's Get Rusty
Рет қаралды 129 М.
I tried Neovim Distributions so you don't have to
9:12
typecraft
Рет қаралды 174 М.
Rust Setup For Neovim (ft BashBunni) #bash2basics
20:02
TJ DeVries
Рет қаралды 85 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 36 МЛН