The perfect Neovim setup for C++

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 597

  • @dreamsofcode
    @dreamsofcode  ปีที่แล้ว +10

    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 ปีที่แล้ว +32

    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 หลายเดือนก่อน +2

      i can smell procrastination

  • @Padancyo
    @Padancyo ปีที่แล้ว +57

    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 7 หลายเดือนก่อน +1

      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 หลายเดือนก่อน +3

    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.

  • @roshanpaudel6352
    @roshanpaudel6352 ปีที่แล้ว +24

    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  ปีที่แล้ว +4

      Thank you for the feedback! I appreciate it and am very glad you like the content!

    • @scraped_2454
      @scraped_2454 ปีที่แล้ว +8

      You forgot the "btw"

    • @roshanpaudel6352
      @roshanpaudel6352 ปีที่แล้ว +2

      @@scraped_2454 😂 aww man !!

    • @joshuarose20
      @joshuarose20 ปีที่แล้ว +6

      guys, this guy uses arch linux btw

    • @scraped_2454
      @scraped_2454 ปีที่แล้ว

      @@roshanpaudel6352 Game is the game

  • @ndes0532
    @ndes0532 ปีที่แล้ว +25

    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  ปีที่แล้ว +1

      This is a great idea!

    • @antoineleduc7611
      @antoineleduc7611 ปีที่แล้ว

      Lazygit

    • @jerrymann9332
      @jerrymann9332 ปีที่แล้ว +1

      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 หลายเดือนก่อน +12

    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 หลายเดือนก่อน +1

      Did you find a solution?

    • @VHenrik007
      @VHenrik007 2 หลายเดือนก่อน +1

      @@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. :\

  • @beekey4807
    @beekey4807 ปีที่แล้ว +12

    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 หลายเดือนก่อน +1

      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

  • @rugososphotos3646
    @rugososphotos3646 ปีที่แล้ว +1

    HUGE value in this video, just getting into nvim plus c++, this is the video I needed :)

  • @MoveTrueRecords_
    @MoveTrueRecords_ 5 หลายเดือนก่อน

    Dude you are actually teaching me Nvim so easy then any video on youtube bro. Thank you

  • @patfre
    @patfre 7 หลายเดือนก่อน +11

    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 4 หลายเดือนก่อน

      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

  • @committedcoder3352
    @committedcoder3352 8 หลายเดือนก่อน +4

    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)

  • @RT-jp9me
    @RT-jp9me ปีที่แล้ว +9

    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?

  • @wcrb15
    @wcrb15 ปีที่แล้ว +6

    Any idea on what you're going to use going forward since null-ls is archived?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +6

      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.

  • @pizzaTimePedro
    @pizzaTimePedro 5 หลายเดือนก่อน

    First class tutorial mate! Not only go through the c++ setup but you also go through how to navigate through neovim!

  • @JesusCastilloBenito
    @JesusCastilloBenito ปีที่แล้ว +7

    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 :)

  • @bobsoup2319
    @bobsoup2319 ปีที่แล้ว +4

    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

  • @abhi_survase
    @abhi_survase 10 หลายเดือนก่อน +3

    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

  • @Shad0wMonkey5
    @Shad0wMonkey5 ปีที่แล้ว +20

    Can you do the perfect neovim configuration for Java please. That would be amazing and most appreciated. :D

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +7

      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 ปีที่แล้ว +1

      Get NormalNvim, it comes with formatter, debugger, and all the stuff preconfigured.

  • @conarius13
    @conarius13 ปีที่แล้ว +14

    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  ปีที่แล้ว +3

      This is an awesome suggestion. I may do a dedicated video to this plugin!

    • @theglowpt3
      @theglowpt3 ปีที่แล้ว +6

      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

  •  ปีที่แล้ว +1

    Amazing, as the whole series so far! thanks

  • @juangdev6737
    @juangdev6737 10 หลายเดือนก่อน +3

    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.

  • @mamahuhu_one
    @mamahuhu_one ปีที่แล้ว +3

    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 หลายเดือนก่อน +1

      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.

  •  ปีที่แล้ว +2

    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?

    •  10 หลายเดือนก่อน

      @@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 10 หลายเดือนก่อน

      @ i think is the clang version tho, everytime i downloaded that problem happened regardless of the IDE/text editor

    •  10 หลายเดือนก่อน

      @@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.

  • @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.

  • @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 😊

  • @melonTime05
    @melonTime05 ปีที่แล้ว +4

    Great video - i would love if you could cover the promised Cmake/make integration within Nvim -

  • @yolepe
    @yolepe ปีที่แล้ว

    Thank you for all your work, there was no other guide that was as thorough as this.

  • @Redyf
    @Redyf ปีที่แล้ว

    The video I was waiting for, thanks dreams!

  • @houdiniping
    @houdiniping 8 หลายเดือนก่อน

    you are a life saver, your video is just clear, easy to follow

  • @kachunpang7543
    @kachunpang7543 ปีที่แล้ว

    May I know which Neovim plugin offers us lightbulb/warning icon for Linter warnings in 5:19 ?

  • @ged1313as
    @ged1313as 9 วันที่ผ่านมา

    Can you make an updated tutorial for this using nvim kickstart? Cant quite get this to work with the new NVChad, neither with kickstart

  • @korigamik
    @korigamik ปีที่แล้ว +2

    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!

  • @banchanbet4524
    @banchanbet4524 5 หลายเดือนก่อน +2

    hey uhh.. my clangd isn't recognizing standard headers, i 've followed the lsp installing instruction

    • @Kian-z8m
      @Kian-z8m 5 หลายเดือนก่อน

      me to

  • @foxsinban7573
    @foxsinban7573 7 หลายเดือนก่อน +1

    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?

  • @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.

  • @tuhoang6609
    @tuhoang6609 10 หลายเดือนก่อน +1

    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

  • @evertonbrzozowyalves1775
    @evertonbrzozowyalves1775 ปีที่แล้ว

    Really like your videos dude! Please keep it up.

  • @alphacraft9658
    @alphacraft9658 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      @@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.

  • @its_code
    @its_code ปีที่แล้ว +2

    😢😢😢😢😢 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 หลายเดือนก่อน +1

      me too

  • @Prodigy1329
    @Prodigy1329 3 หลายเดือนก่อน +1

    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

  • @rishabhjain2756
    @rishabhjain2756 8 หลายเดือนก่อน +1

    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 :)

  • @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

  • @charleslowyer8926
    @charleslowyer8926 ปีที่แล้ว +1

    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

  • @hitarthpatel
    @hitarthpatel ปีที่แล้ว +1

    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 7 หลายเดือนก่อน

      I don't see a video he made about that, do you have the setup tho?

  • @leonardopo6202
    @leonardopo6202 5 หลายเดือนก่อน +2

    Does anyone know if this setup works only for C++ or also for C langauge?

    • @pivok7108
      @pivok7108 3 หลายเดือนก่อน

      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

  • @anlego6470
    @anlego6470 5 หลายเดือนก่อน +1

    Where is the nvchad 2.0 ver command for windows

  • @Mikkysam52
    @Mikkysam52 ปีที่แล้ว

    I requested and you delivered. Thank you!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      You're very welcome. I hope you like it!

  • @michaelcalabrese9338
    @michaelcalabrese9338 9 หลายเดือนก่อน +1

    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

  • @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!

  • @brockdaniel8845
    @brockdaniel8845 8 หลายเดือนก่อน +2

    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

  • @sasuflerr
    @sasuflerr 2 หลายเดือนก่อน

    Hello ! Will you make an other tutorial with a newer version of NVChad?

  • @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  ปีที่แล้ว +1

      Thank you so much. I really appreciate that feedback!

  • @alexsoul982
    @alexsoul982 ปีที่แล้ว

    Great video man, the arch/nvim comunity most trully thanks and apreciate you

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Thank you! I really appreciate that.

  • @NomanSethi-q3q
    @NomanSethi-q3q 11 หลายเดือนก่อน

    Thanks for the config files in the description.

  • @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?

  • @kaab0601
    @kaab0601 ปีที่แล้ว +1

    Hello, I am trying to connect cmake to nvchad. Can you please help?

  • @arumaga
    @arumaga ปีที่แล้ว

    Thank you! much appreciated for this!

  • @vimalathithand917
    @vimalathithand917 ปีที่แล้ว +1

    This is an awesome series ! And it'd be cool if u could do a video for configuring neovim for java

  • @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?

  • @aungthuhein007
    @aungthuhein007 ปีที่แล้ว

    Noob question: is there a way to work with Markdown files (with tables, footnotes, etc.) with a rendered window on the right in Neovim? For note-taking purposes. I'm guessing no?

  • @EdwinChenLoo
    @EdwinChenLoo 11 หลายเดือนก่อน

    Thanks for the tutorial. Was the video on how to invoke custom commands to build and jump to source code with errors ever created?

  • @farantariq42304
    @farantariq42304 4 หลายเดือนก่อน

    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.

  • @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?

  • @dagoberttrump9290
    @dagoberttrump9290 4 หลายเดือนก่อน

    idk why but mason-lspconfig won't eat the clang-format and codelldb for me. It wants only LSP's. Is this a change recently introduced since with your config it seems to work?

  • @neonbyte1337
    @neonbyte1337 11 หลายเดือนก่อน

    Thanks for your series! Would it be possible to add a CMake setup? I can't get neovim to resolve basic stuff like custom import directoy whenever I use a CMake based project.

  • @aijokrobin1225
    @aijokrobin1225 ปีที่แล้ว +1

    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

  • @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

  • @fahim0404150
    @fahim0404150 7 หลายเดือนก่อน

    Great video. Could you please tell me what font you are using?

    • @dreamsofcode
      @dreamsofcode  7 หลายเดือนก่อน +1

      JetBrainsMono Nerd Font!

  • @Brauzerr
    @Brauzerr ปีที่แล้ว +3

    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?

  • @TinyPhil
    @TinyPhil ปีที่แล้ว

    if i accidentally typed y when it asked "do you want to install example custom config" can i re do the proccess? i tried to delete the pluging and reinstall the neo vim and the pluggin but with no success

  • @MeraMadness
    @MeraMadness ปีที่แล้ว

    What I can do if I don't want to do the terminal command for compile every time?

  • @TahaCodes
    @TahaCodes 4 หลายเดือนก่อน

    Amazing tutorial! Thank you.

  • @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

  • @rusty6222
    @rusty6222 ปีที่แล้ว +1

    can u share full system conf ..?

  • @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?

  • @aidengage8218
    @aidengage8218 9 หลายเดือนก่อน

    c++ in my neovim config is running in single file mode and is throwing a ton of errors. i’ve followed these steps pretty closely and even started with a fresh install of nvchad 2.0 but i don’t know what’s wrong. if anyone knows please lmk 🙏🙏

  • @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.

  • @AbdurrahmanHafez
    @AbdurrahmanHafez ปีที่แล้ว

    Great effort
    thank you so much
    We need Front-End tools video

  • @johng.weller468
    @johng.weller468 6 หลายเดือนก่อน

    Nice content. What desktop environment do you use?

  • @TheCSarmat
    @TheCSarmat ปีที่แล้ว

    Thanks a lot for the video. Is there similar instruction on how to add CMake support?

  • @rugiero569
    @rugiero569 6 หลายเดือนก่อน +1

    how can you combine the python and c++ setup. Trying it breaks one or the other

  • @leo-oh1bc
    @leo-oh1bc ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      @@leo-oh1bc Thank you for the description! I'll have a look and see if I can find a similar plugin / behavior!

  • @Obama6464
    @Obama6464 6 หลายเดือนก่อน

    Not sure what's wrong, but my clang-format install simply fails with "spawn: python3 failed with exit code 1 and signal 0". I tried exiting in and out of the terminal session with no luck. It ma be due to an old clang-format version (Im also using wsl2). Any ideas?

  • @NormalNvim
    @NormalNvim ปีที่แล้ว

    Awesome video edition!!

  • @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

  • @lampham7874
    @lampham7874 11 หลายเดือนก่อน

    This video is awesome as I can get a good config without knowing much about neovim yet. I have a question that, sometime I make mistake in code and there is a message popped up: (fix available). How can I apply these fixes? Thank you.

  • @jacoboneill3735
    @jacoboneill3735 ปีที่แล้ว

    Is there a way to set the lspconfig to change the version of c++ it is using, e.g. c++13 instead of c++11?

  • @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.

  • @shridharthakar4845
    @shridharthakar4845 ปีที่แล้ว +1

    Loved your videos on python, and was really happy to see c++ one. I followed the steps in the videos, and noticed that the auto-suggestions don't work with private or protected member functions in c++. Any idea on how I can fix that. Thanks

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Hmm that's annoying. If you jump in my discord we can take a look!

    • @ChrisCox-wv7oo
      @ChrisCox-wv7oo ปีที่แล้ว

      Might need to generate a compile_commands.json for those suggestions to be made

  • @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 หลายเดือนก่อน

    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.

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars ปีที่แล้ว +1

    are you planning to do the same for react by any chance?

  • @h3li0p4us3
    @h3li0p4us3 ปีที่แล้ว

    Good job! thanks for this amazing video

  • @hugog.cintra2573
    @hugog.cintra2573 3 หลายเดือนก่อน

    Great video! Thank you for it!

  • @engin647
    @engin647 ปีที่แล้ว +1

    Thanks for this helpful video. I'm waiting to you share cmake plugin usage video which you mention at 16:00

  • @KamalNathan121212
    @KamalNathan121212 ปีที่แล้ว

    Hi :),
    Everytime MasonInstallAll is executed clangd is getting downloaded, is there any way to avoid this if its already installed ?

  • @klaik30
    @klaik30 9 หลายเดือนก่อน +1

    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 🥲