The perfect Neovim setup for C++

  Рет қаралды 212,587

Dreams of Code

Dreams of Code

Күн бұрын

Пікірлер: 597
@dreamsofcode
@dreamsofcode Жыл бұрын
To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/DreamsofCode . The first 200 of you will get 20% off Brilliant’s annual premium subscription.
@fattoofittoo7907
@fattoofittoo7907 Жыл бұрын
could you create Neovim setup for C?
@michaelmueller9635
@michaelmueller9635 Жыл бұрын
Is there a way to get the value of vectors/objects while debugging? I got the feeling, that - except for primitive data types - it's really hard to use the debugger.
@0xcoffee427
@0xcoffee427 Жыл бұрын
@@fattoofittoo7907 for c also same or different ?
@zombiesalad2722
@zombiesalad2722 Жыл бұрын
Just when I was about to resume my old c++ project from a hiatus, you dropped this! What a great timing.
@dreamsofcode
@dreamsofcode Жыл бұрын
I hope it helps!
@deadmagnet6318
@deadmagnet6318 4 ай бұрын
i can smell procrastination
@Padancyo
@Padancyo Жыл бұрын
Thank you very much for this in-depth explanation of how to setup NvChad for C++ development 🙂I am looking forward to the CMake setup!
@thartanian
@thartanian 6 ай бұрын
Was there ever a video on nvim plugin for cmake/makefile? If not anybody have a setup for those?
@jayhathaway4720
@jayhathaway4720 5 ай бұрын
@@thartanian he never did it
@jayhathaway4720
@jayhathaway4720 5 ай бұрын
@@thartanian Honestly if you're still learning building C++ with cmake you should just use clion with the vim plugin. Set this up later.
@thartanian
@thartanian 5 ай бұрын
@@jayhathaway4720 lol funny you mention that, I got CLion just recently, it's great ty!!
@studysavviour
@studysavviour 10 ай бұрын
Thanks mate, my VSC died and couldn't run C++ earlier, I've always wanted to switch to NVIM and now I have done it finally, Thanks a lot again.
@committedcoder3352
@committedcoder3352 8 ай бұрын
note to more recent viewers: replace jose-elias-alvarez/null-ls.nvim with nvimtools/none-ls.nvim. Interestingly enough that is the only change necessary, as the fork is only trying to maintain the project. That means the require("null-ls") is still the same, even though it might make sense to change it to require("none-ls") (they made the decision for compatability reasons)
@juangdev6737
@juangdev6737 10 ай бұрын
For those who have problems in the last part when executing the "space nr" command. Make sure to include: event = "VeryLazy", after rcarriga/nvim-dap-ui and jay-babu/mason-nvim-dap.nvim in your lua/custom/plugins.lua file. The same thing happened to me and that's what I realized, in the video it shows it very fast at frame 13:20.
@roshanpaudel6352
@roshanpaudel6352 Жыл бұрын
You are awesome man !!! I also use arch and neovim. The quality content you provide are very consise and really helpful. You are really underrated !!
@dreamsofcode
@dreamsofcode Жыл бұрын
Thank you for the feedback! I appreciate it and am very glad you like the content!
@scraped_2454
@scraped_2454 Жыл бұрын
You forgot the "btw"
@roshanpaudel6352
@roshanpaudel6352 Жыл бұрын
@@scraped_2454 😂 aww man !!
@joshuarose20
@joshuarose20 Жыл бұрын
guys, this guy uses arch linux btw
@scraped_2454
@scraped_2454 Жыл бұрын
@@roshanpaudel6352 Game is the game
@beekey4807
@beekey4807 Жыл бұрын
i want to use it for c, everything working perfectly fine but when i trying to debug i got error. "No configuration found for 'c'. you need to add configs to 'dap.configurations.c'" any help?
@Kalasklister1337
@Kalasklister1337 9 ай бұрын
I assume you need to search which mason/nvim plugins you need for C DAP. DAP stands for debugger adapter protocol and it is seriously cool tech. You can even configure it so that you have your debugee on a server or a local docker container and debug without having any dependencies on your system. Just look around for C specific ways and you can get it to work
@ndes0532
@ndes0532 Жыл бұрын
I'd like to suggest Git for a future video. In particular tooling for resolving merge conflicts and navigating complicated branch structures. It's probably my favorite feature of Intellij and I don't know how to replicate it in Neovim.
@dreamsofcode
@dreamsofcode Жыл бұрын
This is a great idea!
@antoineleduc7611
@antoineleduc7611 Жыл бұрын
Lazygit
@jerrymann9332
@jerrymann9332 Жыл бұрын
ironically, java is the only language I wouldn't use nvim for just because intelliJ is so goated. ideavim is a must though obviously
@VHenrik007
@VHenrik007 4 ай бұрын
Unfortunately, this doesn't work for me anymore as of 2.5. The "custom" and "core" folders are not there by default, and "chadrc" is in a different location as well. If something comes up, do not copy mindlessly this tutorial. The description helped a bit by using 2.0, but it still doesn't work for me. I have issues right from the get go when selecting the theme. Try `TSInstall all`, that solved it. Then followed along, and although I have snipetts, and the linter works well with the array example, the std:: autocompletion still does not appear for some reason.
@oguilhermewilliam
@oguilhermewilliam 2 ай бұрын
Did you find a solution?
@VHenrik007
@VHenrik007 Ай бұрын
@@oguilhermewilliam Oh right! In the end for me it was caused gcc/g++ AND clang version mismatch paired with older Ubuntu version. So make sure to match your clang and gcc versions, this somehow helped. Although I gave up on this later on, so I'm not sure.
@saitejageddada3109
@saitejageddada3109 Ай бұрын
@@VHenrik007 i have the same problem did you try is re- installing, cause a friend of mine he tried the 2.0 version he got the same directories as in the video but I have the same problem as you
@saitejageddada3109
@saitejageddada3109 Ай бұрын
Do you have any good sources to follow for the new NV chad version
@VHenrik007
@VHenrik007 Ай бұрын
@@saitejageddada3109 Unfortunately no, I hacked it together wtih ChatGPT. :\
@mamahuhu_one
@mamahuhu_one Жыл бұрын
Thank you for the video. I followed all the steps and could add breakpoints with db but when I press dr I get "no configuration found for `cpp`. You need to add configs to `dap.configurations.cpp` (see `:h dap-configuration`)." Did I do something wrong?
@gregszalayofficial
@gregszalayofficial 9 ай бұрын
I had the same error. In my case I forgot the 'event = "VeryLazy"', line for the "jay-babu/mason-nvim-dap.nvim" plugin. Adding this fixed it.
@abhi_survase
@abhi_survase 10 ай бұрын
Very consice and easy instructions to follow. I am learning NVim on windows and this is helping me set it up. Only one thing is that at 6:22 the suggestions and autocomplete are not as many as seen here. For me after 'std::' some functions only appear if I enter a character. I have installed Cpp-toolchain using MSYS so I have clang gcc cl compilers. But have set only gcc in the path. Is this the problem?
@Cyrsztof
@Cyrsztof 7 ай бұрын
Hi, sorry for digging your comment after few months, but did you find the solution to this problem? I'm having the exact same issue - most suggestions are missing for me. :/
@Kian-z8m
@Kian-z8m 5 ай бұрын
having the same problem
@rugososphotos3646
@rugososphotos3646 Жыл бұрын
HUGE value in this video, just getting into nvim plus c++, this is the video I needed :)
@JesusCastilloBenito
@JesusCastilloBenito Жыл бұрын
Thanks you for all your work and dedication! I really wanted to use nvim as my IDE for a long time, but any configuration really convinced me or worked for me until I found your NVChad series. It would be fantastic if you could also do a video making a Java setup :)
@patfre
@patfre 6 ай бұрын
I have a problem in that I opened neovim after installing nvchad and instead of getting that example prompt I just get the regular neovim screen just in a different shade of gray and nothing happens.
@NBMASTER-qr2hw
@NBMASTER-qr2hw 3 ай бұрын
did you find a solution for this? same problem here..
@romangeneral23
@romangeneral23 3 ай бұрын
Same here
@ShooziEdits
@ShooziEdits 3 ай бұрын
You’re probably using the latest version of nvchad. The version he uses in the video is 2.0 and you can find the git repo in the description for that
@bence712
@bence712 2 ай бұрын
same
@MoveTrueRecords_
@MoveTrueRecords_ 4 ай бұрын
Dude you are actually teaching me Nvim so easy then any video on youtube bro. Thank you
@pizzaTimePedro
@pizzaTimePedro 4 ай бұрын
First class tutorial mate! Not only go through the c++ setup but you also go through how to navigate through neovim!
@joetrujillo639
@joetrujillo639 4 ай бұрын
Thanks for this great tutorial. It really helped me better understand how to get my Neovim all set up. I was able to get it all working as shown.
@conarius13
@conarius13 Жыл бұрын
One suggestion for C/C++ is the Neovim plugin Ouroboros, where you can switch between header and source files with a command. I then just created a custom mapping for it so I can switch between both of them quickly. And a follow up would be great to see how we can use include and library paths for different C++ libraries (such as Vulkan and OpenGL, OpenCL, Qt and Boost, just to name a few). I figured out how to do that within VS Code but I really wanna know how to do it in neovim, including setting build commands so the include and library paths are also used in the build command.
@dreamsofcode
@dreamsofcode Жыл бұрын
This is an awesome suggestion. I may do a dedicated video to this plugin!
@theglowpt3
@theglowpt3 Жыл бұрын
The clangd lsp already supports this via ClangdSwitchSourceHeader. I'm sure it's a cool plugin, unnecessary if you have lsp set up though
@conarius13
@conarius13 Жыл бұрын
​@@theglowpt3The author of Ourboros explained why he made the plugin: All other implementations would either throw errors easily or you can only switch from header to source but not the other way round.
@conarius13
@conarius13 Жыл бұрын
​@@dreamsofcodeOh and I have also looked into setting up neovim for other languages as well and found very interesting plugins and configs. If you want, I could show you some of them
@theglowpt3
@theglowpt3 Жыл бұрын
@@conarius13 Interesting, I'm able to switch both ways just fine, never had any errors or issues at all really
Жыл бұрын
Amazing, as the whole series so far! thanks
@bobsoup2319
@bobsoup2319 Жыл бұрын
My breakpoints keep getting rejected, although the code executes successfully - any advice? I already tried using -glldb instead of --debug, but that didn't fix it. I'm using the latest macos with an m1 mac
@dn275
@dn275 10 ай бұрын
I had to use cpptools instead of codelldb. cpptools can be installed using mason as well
@RT-jp9me
@RT-jp9me Жыл бұрын
This is an awesome video. Thank you for explaining step by step how to proceed. However, I am a bit reluctant to go down the route suggested by you as null-ls is now deprecated. Do you have any thoughts on this?
Жыл бұрын
I followed the steps on the video but it seems like the lsp server detects the languaje as C. I have looked online and what I've found basically says that I should use compile flags (compile_commands.json or compile_flags.txt). That doesnt seem to be used in the video. Am I missing something?
@caioul7
@caioul7 10 ай бұрын
i found the same problem as you, have you got an answer?
9 ай бұрын
@@caioul7 I actually did find a solution bro but I can't recall it. It had something to do with the clang/g++ version I think. I'm not that fluent with Linux and this problem drove me crazy.
@caioul7
@caioul7 9 ай бұрын
@ i think is the clang version tho, everytime i downloaded that problem happened regardless of the IDE/text editor
9 ай бұрын
@@caioul7 Make sure you download one of the latest versions or a version that is compatible with the plugin. I remember it being something like version 12/13, you needed to download it in a specific way as the usual sudo apt would download an old version.
@possumcode
@possumcode 6 ай бұрын
This video can't be better. Thank you soooooooo much!
@cankocak1068
@cankocak1068 7 ай бұрын
Awesome video! I got into Neovim thanks to you and I'm absolutely loving it. Thank you for the amazing content 😊
@jacoboneill3735
@jacoboneill3735 Жыл бұрын
I set up everything like was said in your video (which was great and really informative). Now I am just stuck on the build tools to save and update the build when learning. Please come out with that video as soon as possible!
@houdiniping
@houdiniping 8 ай бұрын
you are a life saver, your video is just clear, easy to follow
@wcrb15
@wcrb15 Жыл бұрын
Any idea on what you're going to use going forward since null-ls is archived?
@dreamsofcode
@dreamsofcode Жыл бұрын
I'm working on a video about it! There's a couple of options moving forward, but I think it's going to be decided by what the community moves to.
@michrisoft
@michrisoft 11 ай бұрын
You can just swap out the null-ls for "nvimtools/none-ls.nvim" in the plugins file and pretty much everything else is the same. You even leave require "null-ls" in the config file because none-ls was made to be a drop-in replacement.
@Shad0wMonkey5
@Shad0wMonkey5 Жыл бұрын
Can you do the perfect neovim configuration for Java please. That would be amazing and most appreciated. :D
@dreamsofcode
@dreamsofcode Жыл бұрын
It's going to a vote for the next video!
@cprn.
@cprn. Жыл бұрын
Honestly, it looks almost exactly the same - you just need to call `:Mason`, press , find "Java" on the list, type in filter number (it's 71), enter. Now you select an LSP, linter, formatter and debugger (press "I" for "install" on each). Add formatter and linter as source for `null-ls` and you're done. TreeSitter will instal syntax files next time you open Java code. Looks the same for every language.
@JesusCastilloBenito
@JesusCastilloBenito Жыл бұрын
@@cprn. yeah, that's what i thought, but java-language-server seems to not work, so I personally don't know if I just have to go with jdtls or what :')
@cprn.
@cprn. Жыл бұрын
@@JesusCastilloBenito Maybe it's something that should be brought up on that LSP's bug tracker (github or whatever they use). Most servers just work out of the box.
@Zeioth
@Zeioth Жыл бұрын
Get NormalNvim, it comes with formatter, debugger, and all the stuff preconfigured.
@melonTime05
@melonTime05 Жыл бұрын
Great video - i would love if you could cover the promised Cmake/make integration within Nvim -
@banchanbet4524
@banchanbet4524 5 ай бұрын
hey uhh.. my clangd isn't recognizing standard headers, i 've followed the lsp installing instruction
@Kian-z8m
@Kian-z8m 5 ай бұрын
me to
@yolepe
@yolepe Жыл бұрын
Thank you for all your work, there was no other guide that was as thorough as this.
@dreamsofcode
@dreamsofcode Жыл бұрын
Glad it was helpful!
@VladTBK
@VladTBK 10 ай бұрын
Ik you probably won't read this, but I've been struggling for almost 5-6 hours to get the debugger to work for Neovim. I've done everything right, but never added --debug to the g++ compilation. Thank you.
@evertonbrzozowyalves1775
@evertonbrzozowyalves1775 Жыл бұрын
Really like your videos dude! Please keep it up.
@ged1313as
@ged1313as 3 күн бұрын
Can you make an updated tutorial for this using nvim kickstart? Cant quite get this to work with the new NVChad, neither with kickstart
@PedroMiguelMoreiraRamalho
@PedroMiguelMoreiraRamalho Жыл бұрын
This video is superb. I love your explanation and how you go through every single step. Very helpful! Thanks so much.
@dreamsofcode
@dreamsofcode Жыл бұрын
Thank you so much. I really appreciate that feedback!
@aijokrobin1225
@aijokrobin1225 Жыл бұрын
6:30 my neovim doesn't see iostream. 'iostream' file not found'
@Brumus14
@Brumus14 Жыл бұрын
same does anyone have an answer its really annoying
@dreamsofcode
@dreamsofcode Жыл бұрын
It might be to do with your library path. Did you manage to get it sorted?
@aijokrobin1225
@aijokrobin1225 Жыл бұрын
@@dreamsofcode this error disappeared after reloading pc
@leonardopo6202
@leonardopo6202 5 ай бұрын
Does anyone know if this setup works only for C++ or also for C langauge?
@pivok7108
@pivok7108 2 ай бұрын
I tested it on some C code and it seems to be working fine
@sunnyheheheh9401
@sunnyheheheh9401 Жыл бұрын
thank you for this video working exactly as you told in my own neovim configuration
@juliusdrath510
@juliusdrath510 Жыл бұрын
6:30 why does neovim tell me that the Tree-Sitter-cpp is not valid for Win32 applications? I can't get it to work
@kachunpang7543
@kachunpang7543 Жыл бұрын
May I know which Neovim plugin offers us lightbulb/warning icon for Linter warnings in 5:19 ?
@klaik30
@klaik30 9 ай бұрын
Because of the latest released update for nvchad, this video is pretty hard to follow. They restructured the initial installation that now uses the "starter" repo. This has a different file structure than their regular repo for some reason and it becomes hard to link all of these requirements together.
@dreamsofcode
@dreamsofcode 9 ай бұрын
Yeah, it's a breaking change. You can still use the existing branch which is in the description and the comments
@klaik30
@klaik30 9 ай бұрын
​@@dreamsofcode Unfortunately, that branch is changed so that the init is just a print saying "use this along starter!!!!". I dont have much experience with how this all works so I wanted to use tutorials like this video, but with the change it gets really hard to figure out what things have changed to make an easy fix 🥲
@Redyf
@Redyf Жыл бұрын
The video I was waiting for, thanks dreams!
@dreamsofcode
@dreamsofcode Жыл бұрын
I hope it helped!
@rishabhjain2756
@rishabhjain2756 8 ай бұрын
In Ubuntu i am getting this error, after installing the conifg file which is mentioned initially in the video rror detected while processing /home/rishabh/.config/nvim/init.lua: E5113: Error while calling lua chunk: /home/rishabh/.config/nvim/lua/core/init.lua:67: attempt to call local 'autocmd' (a nil value) stack traceback: /home/rishabh/.config/nvim/lua/core/init.lua:67: in main chunk [C]: in function 'require' /home/rishabh/.config/nvim/init.lua:1: in main chunk Press ENTER or type command to continue what am i doing wrong here
@jonathanferrer3848
@jonathanferrer3848 8 ай бұрын
same here, do you resolve it?
@ryantruong8516
@ryantruong8516 6 ай бұрын
@@jonathanferrer3848 Hey I just solved this problem myself. I figured out that installing neovim through ubuntu gets you an older version. you want to install a later version to use NVCHAD. Run these commands to install the latest version: sudo add-apt-repository ppa:neovim-ppa/unstable sudo apt update sudo apt install neovim Hope this helps :)
@alphacraft9658
@alphacraft9658 Жыл бұрын
It looks perfect on your end, but my Terminal emulator, KDE Konsole, Displays the NerFont glyphs incorrectly. I have the exact same font as you.
@dreamsofcode
@dreamsofcode Жыл бұрын
Why version of the nerdfont do you have installed? There was an update recently!
@alphacraft9658
@alphacraft9658 Жыл бұрын
@@dreamsofcode To my knowledge I have installed the latest version about one of two days ago. This appears to be an issue with font rendering in Konsole. But at the moment I can't check the installed version, though.
@vimalathithand917
@vimalathithand917 Жыл бұрын
This is an awesome series ! And it'd be cool if u could do a video for configuring neovim for java
@alessandroserra885
@alessandroserra885 7 ай бұрын
Hi, I followed all the steps but when opening a c++ file i get an error message saying that iostream module does not exist, am I doing something wrong?
@ziphy_6471
@ziphy_6471 7 ай бұрын
Do you have a compiler for c++ installed
@alessandroserra885
@alessandroserra885 7 ай бұрын
@@ziphy_6471 yeah I’m on macOS I have clang
@alessandroserra885
@alessandroserra885 7 ай бұрын
@@ziphy_6471 yeah i have clang for macos
@hitarthpatel
@hitarthpatel Жыл бұрын
Great video exactly what I was looking for , can you please make a video/doc about the build plug-in you talk about thanks
@thartanian
@thartanian 6 ай бұрын
I don't see a video he made about that, do you have the setup tho?
@KrishT0
@KrishT0 Жыл бұрын
got error while doing "TSInstall cpp" ERROR : No c compiler found ! "cc", "gcc", "clang", "cl", "zig" are not executable.
@dreamsofcode
@dreamsofcode Жыл бұрын
Do you have clang installed on your machine?
@KrishT0
@KrishT0 Жыл бұрын
@@dreamsofcode it worked i didnt had gcc compiler in my system, i installed it and it worked
@tuhoang6609
@tuhoang6609 10 ай бұрын
thank you very much but I have one question how I can input compile_commands.json to clangd in vim to go to definition and declaration. I have to do this a lot while coding
@its_code
@its_code Жыл бұрын
😢😢😢😢😢 I'm tired to configure neovim autocompelete for c/c++ on windows with mingw compiler... Can someone help me with it😢😢
@Kian-z8m
@Kian-z8m 5 ай бұрын
me too
@brockdaniel8845
@brockdaniel8845 8 ай бұрын
For me, on Windows 10 simple installation of clangd and llvm-mingw didn't work so I placed on %appdata%\..\Local vim-data\mason\packages\clangd\clangd_17.0.3 every file of llvm-mingw-20240404-ucrt-x86_64
@NomanSethi-q3q
@NomanSethi-q3q 11 ай бұрын
Thanks for the config files in the description.
@engin647
@engin647 Жыл бұрын
Thanks for this helpful video. I'm waiting to you share cmake plugin usage video which you mention at 16:00
@Mikkysam52
@Mikkysam52 Жыл бұрын
I requested and you delivered. Thank you!
@dreamsofcode
@dreamsofcode Жыл бұрын
You're very welcome. I hope you like it!
@arumaga
@arumaga Жыл бұрын
Thank you! much appreciated for this!
@AbdurrahmanHafez
@AbdurrahmanHafez Жыл бұрын
Great effort thank you so much We need Front-End tools video
@rugiero569
@rugiero569 6 ай бұрын
how can you combine the python and c++ setup. Trying it breaks one or the other
@alexsoul982
@alexsoul982 Жыл бұрын
Great video man, the arch/nvim comunity most trully thanks and apreciate you
@dreamsofcode
@dreamsofcode Жыл бұрын
Thank you! I really appreciate that.
@christopherwood6514
@christopherwood6514 Жыл бұрын
Just as a note to some viewers: compiling with the '--debug' flag cause all the breakpoints to be rejected on the Ubuntu wsl on my computer, instead I compiled with the '-glldb' flag and everything worked fine
@dreamsofcode
@dreamsofcode Жыл бұрын
Thank you for sharing this!
@bobsoup2319
@bobsoup2319 Жыл бұрын
I have the same problem; the code executes fully, but it just skips all the breakpoints. I'm using the newest macos on my m1 mac though - any advice?
@shimadabr
@shimadabr Жыл бұрын
I found this flag to be weird, didn't find it on the manual. The -g flag is very well known though, you could try with it.
@christopherwood6514
@christopherwood6514 Жыл бұрын
@@shimadabr -g might also work, i think i tried it but i dont quite remember
@CheapHomeTech
@CheapHomeTech 11 ай бұрын
I had to record the screen and then play it back in slow speed otherwise it momentarily shows the debug stuff and then reverts back to only the editor window. So looking at the screen in very slow speed I see: Console is in... Could not resolve any locations for breakpoint at main.cpp:4, but found a valid location at main.cpp:4 Launching: main Launched process ... I'm running on the latest linux mint xfce. I tried the -glldb. Still got the same thing. I suppose I'll have to play and get the right debugger settings...
@michaelcalabrese9338
@michaelcalabrese9338 8 ай бұрын
My tree that I start with looks nothing like yours in .config after installing nvchad, I have configs and plugins directories and chadrc, mappings, and options are just in the lua directory
@foxsinban7573
@foxsinban7573 6 ай бұрын
Hi i just watched all videos of the playlist and i'm asking my self can i use all plugins at once (or a lot of them)? because for my work i need to code rust, python and c. So is it possible to use them at the same time? or do they interfear with each other?
@12oooooooooooo
@12oooooooooooo 5 сағат бұрын
i really didnt understand anything at all. apparently when i set up nvchad, the directories created look nothing like yours. I am so confused. What can I learn to understand all this stuff? I am so lost, but I really want to learn... Any books, courses, tutorials? I really don't know what I don't understand about computers, software or whatever. I really don't get it. Please help
@itsrobelschwarz7248
@itsrobelschwarz7248 9 ай бұрын
Would really appreciate that CMake video right about now
@kaab0601
@kaab0601 Жыл бұрын
Hello, I am trying to connect cmake to nvchad. Can you please help?
@Prodigy1329
@Prodigy1329 3 ай бұрын
Did you ever actually make the make/cmake video? I had a look and couldn't find one anywhere Everything else worked great though, just swapping out the null-ls link for none-ls and changing nothing else worked flawlessly on nvim 10.1
@nazarzibilyuk1511
@nazarzibilyuk1511 2 ай бұрын
Thank you, good video, but i faced the same error as I see in the video. Print to cout doesnt reflected in dap.repl window. Maybe you know how to solve it?
@ericling1564
@ericling1564 10 ай бұрын
The configuration works fine, and It's pretty easy to understand. I just have one more question , if you could help me out. I do'nt know how if there's a built in configuration to see the outline of the buffer, I myself didn't find anyway. I also don't know how to set this up. Thanks for your job anyway.👏👏👏
@oguilhermewilliam
@oguilhermewilliam 2 ай бұрын
Can someone help me? Error in processing init.lua Invalid spec module: 'plugins' Expected a 'table' of specs, but a 'nil' was returned instead
@bantix9902
@bantix9902 Жыл бұрын
the debugger doesn't work for me, after I do dr a new tab opens up but it doesn't look like a debugging window like on your screen. It's just blank with the title [dap-terminal].. EDIT: I copied your config and it works, but honestly it's soo complicated
@abombfuenmayor
@abombfuenmayor Жыл бұрын
You read my mind! I have a setup for C but it's not perfect. Going to try your setup. Thanks!
@Blurryavi
@Blurryavi 2 ай бұрын
Hi, I followed this tutorial a while ago and it worked really well for me. I'm learning c++ but there seems to be an error with the compiler when i try to initialize every value of an array in 0. What can I do to fix that?
@sasuflerr
@sasuflerr 2 ай бұрын
Hello ! Will you make an other tutorial with a newer version of NVChad?
@liyuefu
@liyuefu 7 ай бұрын
Thanks a lot! Can I just ask a question? how I can pass the argument to debug? for example, I want to run "gaussdb -D /opt/opengauss/pgdata", how to pass the -D .. etc to it? When I try to add it in the , it does not work. Thanks.
@yookeunsik
@yookeunsik Ай бұрын
Thank you for sharing info. After your shell script. install.sh. Some error displayed in vim like below. Command "MasonInstallAll' not found after loading 'mason.nvim' How can I solve this?
@aWildOcti
@aWildOcti Ай бұрын
This is day 3 of trying to get this set up on a pi as someone who has never touched linux or vim before, still going strong
@jakubjaworski8828
@jakubjaworski8828 Жыл бұрын
Nice video. I'd love to see stomething like this for the JavaScript and web development in general
@dreamsofcode
@dreamsofcode Жыл бұрын
I shall add it to the backlog, friend!
@dr3d3d
@dr3d3d 10 ай бұрын
great video thanks very much, can you point me in the right direction for the cmake addition? would love a method of building and running from inside nvim
@leo-oh1bc
@leo-oh1bc Жыл бұрын
is there a way to refactor the code witht this setups? I've followed the rust tutorial but I can't find a way to extract to function parts of my code like I do in vs code
@dreamsofcode
@dreamsofcode Жыл бұрын
They're likely is! Do you have a description / pointer to how you currently refactor so I can replicate it. It might be good for a general video on refactoring with neovim!
@leo-oh1bc
@leo-oh1bc Жыл бұрын
​@@dreamsofcode ​​ the function I'm referring to is simple: I select some lines that I want to refactor into a dedicated function and then press ctrl+shift+r, a popup will appear where I find the function "extract to function". Thank you for this videos, they are helping a lot with using neovim and actually understanding how the configuration work!
@dreamsofcode
@dreamsofcode Жыл бұрын
@@leo-oh1bc Thank you for the description! I'll have a look and see if I can find a similar plugin / behavior!
@charleslowyer8926
@charleslowyer8926 Жыл бұрын
Can u please make a video about configuring Java in nvim. Especially configuring LSP server from Eclipse is one big nightmare for me and can't figure it out :/ There're just few videos on YT about it. I watched them like 10 times and still it doesnt work for me
@eddyecko94
@eddyecko94 Жыл бұрын
null-ls is being archived soon. Look at another way of formatting. clangd comes with a formatter. You can use that with some keybindings or auto commands to set the formatting.
@dreamsofcode
@dreamsofcode Жыл бұрын
Yeah, I'm working on a video about it now. News dropped after I had uploaded and was waiting for review.
@TahaCodes
@TahaCodes 4 ай бұрын
Amazing tutorial! Thank you.
@h3li0p4us3
@h3li0p4us3 11 ай бұрын
Good job! thanks for this amazing video
@swarnavmukherjee9694
@swarnavmukherjee9694 5 ай бұрын
i have followed everything and done everything said in the video but whenever i give the clang++ command it shows command not found. Please help as I really want to compile C++
@futotta-neko
@futotta-neko Жыл бұрын
I always get this problem where i get no code completion like you do and js not found, but compiles just fine in the terminal
@Kian-z8m
@Kian-z8m 5 ай бұрын
me too
@MeraMadness
@MeraMadness Жыл бұрын
What I can do if I don't want to do the terminal command for compile every time?
@rul1175
@rul1175 4 ай бұрын
Can you make a tutorial for LazyVim. I tried to make this one work in lazy vim but I couldnt get it going. I assume clang should work with C too.
@TheCSarmat
@TheCSarmat Жыл бұрын
Thanks a lot for the video. Is there similar instruction on how to add CMake support?
@hamidnia3951
@hamidnia3951 10 ай бұрын
All my icons in debug mode and tree view are square instead of correct shape what I need to install
@dreamsofcode
@dreamsofcode 10 ай бұрын
Make sure to install and set up a nerd font!
@korigamik
@korigamik Жыл бұрын
This is great, can you tell us what you use to create these amazing visuals in the video? What video editor and your configuration?
@dreamsofcode
@dreamsofcode Жыл бұрын
I'm using Davinci Resolve! I'm currently packaging up my custom effects in order to sell in the near future and will be doing tutorials on them on a new channel: @dreamsofmotion. I'll do a channel post when that drops!
@fahim0404150
@fahim0404150 7 ай бұрын
Great video. Could you please tell me what font you are using?
@dreamsofcode
@dreamsofcode 7 ай бұрын
JetBrainsMono Nerd Font!
@farantariq42304
@farantariq42304 3 ай бұрын
Very good tutorial! It worked for me when i did it a few days ago but now when i try to install NvChad from the command given in the description there is an error: Remote branch v2.0 not found in upstream origin. Please help me.
@anlego6470
@anlego6470 5 ай бұрын
Where is the nvchad 2.0 ver command for windows
@samkim9401
@samkim9401 10 ай бұрын
isn't Clang-format already included with clangd? It's not working for me despite me retrying. I'll manually format my code for now.
@SNTASCND
@SNTASCND 6 ай бұрын
Cool 😎 thanks, any alternative for vim?
@LongwuOu
@LongwuOu Жыл бұрын
Hi, your video is really helpful. I have been following your tutorial and it worked great! However, I can't seem to get the feature of automatic header inclusion working like you showed in the video in your main.cpp file. My autocompletion for `std::` also does not work until I include the correct headers. I see you get all these completions for `std::` without any header files and you get `clangd` to automatically include the headers for you. Do you have any special setup to make that work? Thanks!
@LongwuOu
@LongwuOu Жыл бұрын
I figured out that it is enabled by default in clang-16.
@liyuefu
@liyuefu 7 ай бұрын
How to disable SIGUSR2 during debug with dap and nvim ? Thanks.
@Brauzerr
@Brauzerr Жыл бұрын
Thank u so much, but… Can you help me? After last step (space+dr): “No configuration found for ‘cpp’. You need to add configs to ‘dap.configurations.cpp’ (See ‘:h dap-configuration’)”
@abpdev
@abpdev 9 ай бұрын
Were you able to fix it?
@ryoschinlot9153
@ryoschinlot9153 Жыл бұрын
I have a weird problem, see, mason is kind of not really that compatible with NixOs, so it's always a gamble if a package will work on my system or not. Now, there are workarounds, and I usually just install it using the package manager, however dap cannot automatically find and setup my debugger, and I am quite inexperienced when it comes to setting up debuggers in Neovim myself. Would you mind kind of explaining how to link lldb (cannot seem to find codelldb, and I am not sure if they are the same thing) or gdb with Neovim manually?
@narendrapatwardhan68
@narendrapatwardhan68 Жыл бұрын
I don't know why but I can't get the clang-format to work. Even though it is installed, fm results in format request failed, no matching servers.
@dreamsofcode
@dreamsofcode Жыл бұрын
If you type in :NullLsInfo does it show clang-format as being enabled?
@narendrapatwardhan68
@narendrapatwardhan68 Жыл бұрын
@@dreamsofcode It was my fault haha. I was going through your playlist and setting nvim for each language and forgot to update ft in the null-ls config.
@narendrapatwardhan68
@narendrapatwardhan68 Жыл бұрын
@@dreamsofcode Thanks a lot for making this series btw. I have been trying to use neovim for a long time and these videos gave me the push I needed.
Как быстро освоить Vim / Neovim?
23:31
PurpleSchool | Anton Larichev
Рет қаралды 65 М.
The perfect Neovim setup for Python
15:11
Dreams of Code
Рет қаралды 250 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Is C BETTER than C++ for beginners? // Code Review
31:16
The Cherno
Рет қаралды 83 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 1 МЛН
Introducing Clay - High Performance UI Layout in C
35:19
Nic Barker
Рет қаралды 56 М.
The (almost) perfect Neovim setup for Node.js
20:37
Dreams of Code
Рет қаралды 87 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 398 М.
How C++ took a turn for the worse
5:03
Code Persist
Рет қаралды 330 М.
NeoVim - лучший редактор кода
12:32
Чёрный Треугольник
Рет қаралды 197 М.
How Old Can a File Be?
12:11
Dev Detour
Рет қаралды 29 М.
Cómo meter un TELÉFONO en un aula📲 #cortos
0:28
Jelly Jail Spanish
Рет қаралды 1,1 МЛН