Get your *FREE 4-Day Rust training* : letsgetrusty.com/bootcamp
@Adam-om9si3 ай бұрын
Crazy how i started nvim 3 weeks ago and you came out with this vid. Thanks so much.
@Duckless1373 ай бұрын
I started TWO DAYS BEFORE he put this out!
@ntippy3 ай бұрын
0:33 "keyboard exclusively as God intended" for the win
@fabricehategekimana53503 ай бұрын
Vim/Neovim mention ! Let's go !!!
@thingsiplay3 ай бұрын
Go mentioned, let's rust !!!
@gekkoe8083 ай бұрын
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.)
@slowdownbot76173 ай бұрын
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.
@gekkoe8083 ай бұрын
@@slowdownbot7617 on windows you want the following two changes: codelldb_path = extension_path .. "adapter\\codelldb.exe" liblldb_path = extension_path .. "lldb\\bin\\liblldb.dll"
@Gabonidaz3 ай бұрын
@@slowdownbot7617 did you manage to make debug work on windows? i'm trying but i'm getting the same error ECONNREFUSED
@slowdownbot76173 ай бұрын
@@Gabonidazyes, you need to change the paths. I used the following: \\extensions\\ adapter\\codelldb.exe lldb\\bin\\lldb.lib
@camorimd3 ай бұрын
@@slowdownbot7617 Same here :( Did you manage to make it work?
@marcelo558693 ай бұрын
7:50 "dap-ui my boi" ~Picollo to Gohan probably
@TheAlexgoodlife3 ай бұрын
More like bully maguire
@marcelo558693 ай бұрын
@@TheAlexgoodlife kzbin.info37chTU07B8A
@yurari_san2 ай бұрын
I was trying to build a neovim environment to do Rust coding and you were very helpful! Your videos were very easy to follow.
@codetothemoon3 ай бұрын
as God intended! great video 😎
@weiminghu23572 ай бұрын
Thank you very much! I'm so happy to see nvim has developed so much!
@hadialkmishe14383 ай бұрын
didnt mental outlaw just make the same video
@Peshyy3 ай бұрын
came for this
@18o43 ай бұрын
exactly
@alomac89763 ай бұрын
he did
@pluto84043 ай бұрын
darn. My 2 favorite people. Guess they have been compromised by the cia. They are lizard people now.
@vikaspoddar0013 ай бұрын
But his video has more info for beginners i guess
@marcins.112819 сағат бұрын
You can both open and close the terminal with Alt-h, or Alt-v (vertical) or Alt-i (floating)
@GameDSS2 ай бұрын
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?
@mcdermottpa3 ай бұрын
Great video. It helped me sort out a few issues in my config.
@RootsterAnon3 ай бұрын
I adore AstroNvim and is my forst choice for writing code.
@daniel292633 ай бұрын
Same, I can't be bothered learning the nvim api and lua. Astro is a great choice for people like me.
@Pjiwm3 ай бұрын
Exactly. Got it from boilerplate.
@Mr.BinarySniper3 ай бұрын
Same here.
@gabrielrmunoz3 ай бұрын
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?
@MrDujmanu3 ай бұрын
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.
@sighupcmd3 ай бұрын
I'd never call vs code IDE. Just an another text editor, like vim/emacs. Jetbrains products are IDEs
@michaelmueller96353 ай бұрын
Do Neovim and you understand your projects. This IS fast and simple.
@rasibn3 ай бұрын
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.
@itsmenewbie033 ай бұрын
we use it to have the right to say "I use Neovim BTW"
@cabeloDoPardal2Ай бұрын
finally I got it working, Thank you very much.
@BohdanTrotsenko3 ай бұрын
This is golden.
@valentinplechuc57103 ай бұрын
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
@amaraag943526 күн бұрын
Thank you. How add typescript language server on lsp.config?
@jmanindahizouse2 ай бұрын
which macos terminal app do you use?
@mazinayman40043 ай бұрын
You can paste without entering insert mode. Just press p
@letsgetrusty3 ай бұрын
Yeah you can tell I'm new to vim haha
@benibachmann92743 ай бұрын
Thanks for the video! Can you set up cargo check or cargo clippy on save or on type?
@michaelmueller96353 ай бұрын
Now letsgetrusty is officially part of the cool-kid-gang 🎉🥳🎉
@serialkiller87833 ай бұрын
i downloaded the initlua and mappings from github and replaced in my config. running dt works but dc doesnt
@MaazKhalid3 ай бұрын
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
@ojochegbe_3 ай бұрын
Yo I swore never to use nvim but this video just made me change my mind 😂❤
@tinajastyle3 ай бұрын
Bro this is 🔥🔥🔥
@cristhiamtovar90033 ай бұрын
Cool! Now I’m getting more motivated in learning Rust
@sdramare8643 ай бұрын
Should I have mustache for use NeoVim? Is it really mandatory?
@letsgetrusty3 ай бұрын
Yes.
@marcins.112819 сағат бұрын
@@letsgetrusty Richard Stallman who created Emacs, was once asked if using vi was a sin. His aswer was: using vi is not a sin, using vi is a penance.
@frankjimenez94073 ай бұрын
Rust + Neovim = 👌
@GoodmanWed3 ай бұрын
Thanks very useful video.
@geetajuyal7115Ай бұрын
What to do if rust-analyzer is unsupported in Mason? 😢
@theparthsingh3 ай бұрын
how can i get code actions to work in this ?
@zombiegamer824321 күн бұрын
whyyyyyy the rustaceanvim plugin judt borked my code completion
@meanmole32123 ай бұрын
Does refactoring work?
@radutomy3 ай бұрын
Any plugin that imports missing references/crates at the top of the file automatically? Similarly to how IDEs do it.
@bstech48033 ай бұрын
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.
@nrosquist3 ай бұрын
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
@akshettrj3 ай бұрын
First we had mental outlaw and luke smith controversy. Now its gonna be mental outlaw and lets get rusty controversy
@letsgetrusty3 ай бұрын
Bring it
@rey14543 ай бұрын
So straight forward that my eyes went cross.
@난아스타3 ай бұрын
how to enable inlay-hint???
@7369393 ай бұрын
Use Helix, vim-like editor that is written in Rust
@anamoyeee3 ай бұрын
[EDIT: SOLVED] before pasting the nvchad's (not neovim's) install command type the following: set COLORTERM=truecolor 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 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?
@rasibn3 ай бұрын
Hey I installed neovim from Winget on windows terminal and it works fine.
@anamoyeee3 ай бұрын
@@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...)
@kuqmua7553 ай бұрын
Why it's not Helix setup tutorial?
@letsgetrusty3 ай бұрын
Coming soon :)
@thingsiplay3 ай бұрын
Vim is the Endgame.
@Mawkler3 ай бұрын
9:32 Acschhhhhually the key is \ by default, but most people remap it to space
@stevanewald1063 ай бұрын
Acshhhhhually the key is set to space by default when using nvchad, which this video is.
@anon_y_mousse3 ай бұрын
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.
@kaanbilgin82453 ай бұрын
saved me from 2 days of agony, kudos
@xX_SushiRoll_Xx3 ай бұрын
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.
@nrosquist3 ай бұрын
there's a link
@chuckocheret41153 ай бұрын
I forked the nvchad starter repo so that I can track my own changes in my fork (instead of just deleting the .git directory).
@seneketh3 ай бұрын
What about RustRover? (srsly)
@tom901ful3 ай бұрын
The ultimate Chad guide.
@zatochiSiberian3 ай бұрын
Thanks
@daephx3 ай бұрын
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.
@fcolecumberri3 ай бұрын
I thought you would use zed.
@chuckocheret41153 ай бұрын
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.
@siduck_og3 ай бұрын
Nice :)
@l30n.marin3r03 ай бұрын
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!
@AhnafAbidFahim-h1v2 ай бұрын
At the end of the day, everyone wants a GUI, then why not install VSCode straight away?
@oleksandrkovalov15433 ай бұрын
Lazyvim does all that automatically? It all comes with Lazyvim out of the box..
@frittex3 ай бұрын
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.
@oleksandrkovalov15433 ай бұрын
@@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.
@frittex3 ай бұрын
@@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)
@drishalballaney3 ай бұрын
@@oleksandrkovalov1543 this is why you just configure once and store the config on git
@anon_y_mousse3 ай бұрын
@@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.
@wilder64082 ай бұрын
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.
@MarkusBurrerАй бұрын
Now do the same for Helix 👍
@Kiyuja3 ай бұрын
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....
@henryvaneyk37693 ай бұрын
IntelliJ is your friend. Dump Visual Studio.
@Kiyuja3 ай бұрын
@@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
@kazeembalogun71822 ай бұрын
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)
@ntippy3 ай бұрын
8:12 this is a bit much for us to type
@ntippy3 ай бұрын
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
@juanmacias59223 ай бұрын
nvim
@sergiuoanes46353 ай бұрын
or you just go with Helix.... and life is beautiful
@daniel292633 ай бұрын
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.
@rasibn3 ай бұрын
Use Helix and not be able to customize anything. Huge win!
@Nitiiii113 ай бұрын
If Helix had 2-3 features that I am missing, then imho it would be vastly superior to Neovim. Maybe some day.
@sergiuoanes46353 ай бұрын
@rasibn I customized a lot of things on my liking. I am pretty happy with the results.
@letsgetrusty3 ай бұрын
Making a video about that soon as well :)
@cryptonative3 ай бұрын
Learnt lifetimes, proc macros, memory ordering and still can exit neovim
@eriye923 ай бұрын
best video to convince ppl not to use neovim keke
@psi4j3 ай бұрын
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.90132 ай бұрын
theres tiling window managers for macos too AFAIK
@waynelau32563 ай бұрын
I think helix is not bad too
@TenTypekMatus3 ай бұрын
Next video: Nix with Rust.
@kristoferssolo3 ай бұрын
Harpoon mentioned
@solmateusbraga3 ай бұрын
Kakoune >>>>>
@LostRunner02133 ай бұрын
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
@freedomfury4 күн бұрын
Yes NeoVim is great if you have a lot of free time on your hands and are bored or you got OCD syndrom. I'd rather use free RustRover that is ready to go out of the box runs smooth unless you live in a 3rd world country using a $100 laptop and I got my free time to spend doing hobbies or going out with friends.
@SorinOltean773 ай бұрын
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.
@thearyanahmed3 ай бұрын
He looks like Arthur Morgan from RDR2
@cowoverthere54853 ай бұрын
Bikeshedding Gaming
@rudolfvaneulenstein98963 ай бұрын
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.
@p99chan993 ай бұрын
"lightweight"
@abdelk.20603 ай бұрын
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!
@jasperzanjani3 ай бұрын
neovim configuration is not trivial
@adrian_sp6def3 ай бұрын
discuss rust abi
@Red-Code223 ай бұрын
First viewer
@fluttermaster61483 ай бұрын
Or you can simplify it with 1 step: 1) Install zed
@daniel292633 ай бұрын
Seems like a hassle running that over ssh.
@fluttermaster61483 ай бұрын
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
@s1v73 ай бұрын
you ruined it all! you should say - "I use Arch, btw"
@ctnguyenvn3 ай бұрын
...and codium for neovim 😅
@muhammadharris44703 ай бұрын
All of this can be done with the lazy builtin rust config just by uncommenting rust support in the config.
@erlangparasu63393 ай бұрын
LazyVim, better docs
@phelipe88883 ай бұрын
11 comment
@zeroday1713 ай бұрын
second
@moontracker3 ай бұрын
Seriously? Let's spend time on what values most rather than fixing vim to look like cool kids! 😀
@justabdulmuizz3 ай бұрын
first
@halano3 ай бұрын
rust analyzer is the worst LSP ever made it eating my whole system performance compares it to gopls and clangd show big difference.
@rolandobrien9 күн бұрын
Nahhh imma pass
@charleswheeler34182 ай бұрын
this video is not very helpful for linux users...
@henryvaneyk37693 ай бұрын
All this work to get VIM to look like IntelliJ? Nah, I'm good.
@frydac3 ай бұрын
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.
@T1Oracle3 ай бұрын
Helix > NeoVim
@cunbex21833 ай бұрын
Just use helix, 0 conf
@antergonza64763 ай бұрын
Well done, thnx
@s.joseph4063 ай бұрын
@fabricehategekimana5350 6 hours ago Vim/Neovim mentioned letgs go @ThePrimeTimeagen . Let him cook