ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

The perfect Neovim setup for C++

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ส.ค. 2024
  • To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/... . The first 200 of you will get 20% off Brilliant’s annual premium subscription.
    ⚠️ NVChad has had some breaking changes, make sure to use the v2.0 branch if you're using this video. You can find the command below.
    Commands:
    NVChad Install line: git clone -b v2.0 github.com/NvC... ~/.config/nvim --depth 1
    Neovim has been the most loved editor for three years in a row, according to the stackoverflow developer survey.
    In this video we look at setting up Neovim for C++ using NVChad, to create an editor experience worth loving.
    This video was sponsored by Brilliant
    Become a better developer in 4 minutes: bit.ly/45C7a29 👈
    Join this channel to get access to perks:
    / @dreamsofcode
    My socials:
    Discord: / discord
    Twitter: / dreamsofcode_io
    My Equipment:
    Coding: kit.co/dreamso...
    Audio: kit.co/dreamso...
    Video Links:
    Final Config: github.com/dre...
    NVChad: nvchad.com/
    null-ls Sources: github.com/jos...
    NVChad install line:
    git clone github.com/NvC... ~/.config/nvim --depth 1
    00:00 Intro
    00:15 Getting started
    01:52 Autosuggestions
    07:04 Autoformatting
    10:31 Sponsor
    11:50 Debugger

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

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

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

      could you create Neovim setup for C?

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

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

      @@fattoofittoo7907 for c also same or different ?

  • @zombiesalad2722
    @zombiesalad2722 ปีที่แล้ว +22

    Just when I was about to resume my old c++ project from a hiatus, you dropped this! What a great timing.

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

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

      Was there ever a video on nvim plugin for cmake/makefile? If not anybody have a setup for those?

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

      @@thartanian he never did it

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

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

      @@jayhathaway4720 lol funny you mention that, I got CLion just recently, it's great ty!!

  • @juangdev6737
    @juangdev6737 6 หลายเดือนก่อน +2

    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.

  • @patfre
    @patfre 2 หลายเดือนก่อน +9

    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.

  • @studysavviour
    @studysavviour 6 หลายเดือนก่อน +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  ปีที่แล้ว +3

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

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

      You forgot the "btw"

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

      @@scraped_2454 😂 aww man !!

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

      guys, this guy uses arch linux btw

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

      @@roshanpaudel6352 Game is the game

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

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

      ironically, java is the only language I wouldn't use nvim for just because intelliJ is so goated. ideavim is a must though obviously

  • @pizzaTimePedro
    @pizzaTimePedro 23 วันที่ผ่านมา

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

  • @MoveTrueRecords_
    @MoveTrueRecords_ 20 วันที่ผ่านมา

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

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

      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.

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

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

    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

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

    note: for clang-format, you must have python3.10-venv installed, sorry Python haters

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

      My guy, I literally have been scouring the internet. Thank you lol

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

      @@SovieD you're welcome 💛

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

    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.

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

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

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

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

  • @RT-jp9me
    @RT-jp9me 10 หลายเดือนก่อน +8

    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?

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

    Awesome video! I got into Neovim thanks to you and I'm absolutely loving it. Thank you for the amazing content 😊

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

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

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

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

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

  • @TahaCodes
    @TahaCodes 58 นาทีที่ผ่านมา

    Amazing tutorial! Thank you.

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

    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)

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

  • @melonTime05
    @melonTime05 10 หลายเดือนก่อน +4

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

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

      Were you able to fix it?

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

    This video can't be better. Thank you soooooooo much!

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

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

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

      Glad it was helpful!

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

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

      I had to use cpptools instead of codelldb. cpptools can be installed using mason as well

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

    Amazing, as the whole series so far! thanks

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

      Yeah, it's a breaking change. You can still use the existing branch which is in the description and the comments

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

      ​@@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 🥲

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

    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

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

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

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

      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.

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

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

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

    thank you for this video working exactly as you told in my own neovim configuration

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

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

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

      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. :/

    • @user-uz5rs1zy1n
      @user-uz5rs1zy1n หลายเดือนก่อน

      having the same problem

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

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

  • @VHenrik007
    @VHenrik007 6 วันที่ผ่านมา

    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.

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

    Better use the leader-E to select file tree.
    Took me days first time to understand that CTRL-H doesn't mean "select file tree", but rather "select window on the left".

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

    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++

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

    You read my mind! I have a setup for C but it's not perfect. Going to try your setup. Thanks!

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

      i found the same problem as you, have you got an answer?

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

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

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

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

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

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

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

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

    Neovim I installed yesterday first time in my life. It's fun, liked it. But sadly for my language there are no quality plugins like there are in VSCode so I can't migrate.

  • @rul1175
    @rul1175 11 วันที่ผ่านมา

    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.

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

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

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

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

    Thank you! much appreciated for this!

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

    Really like your videos dude! Please keep it up.

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

    Would really appreciate that CMake video right about now

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

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

    There needs to be one for Java, JavaScript and PHP

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

      Added to the backlog!

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

      ​​​@@dreamsofcodeyes, it will be appreciated if you can do one for Java, I'm a computer science student and we are forced to use VScode in the university, VS is good because you can immediately install the Java extension pack with all the necessary plugins, I got JDTLS to work with neovim but I have some problems getting "Gradle" and "checkstyle" linter to work properly, because we have to use them for our projects, "checkstyle" works flawlessly with Vscode

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

  • @brockdaniel8845
    @brockdaniel8845 4 หลายเดือนก่อน +1

    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

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

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

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

      Why version of the nerdfont do you have installed? There was an update recently!

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

  • @user-lp3tt5kj1q
    @user-lp3tt5kj1q 7 หลายเดือนก่อน

    Thanks for the config files in the description.

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

    The video I was waiting for, thanks dreams!

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

    Awesome! I am waiting for web development setup such as html/css/javascript on next video 👍

  • @Sluggernaut
    @Sluggernaut 28 วันที่ผ่านมา

    God. Hell no. That debugger setup was a nightmare. I just want to hit F9 to add a breakpoint to the line I am on and F5 to run the freaking project/sln I am working in. omg. Then I can easily mouse over any and all variables, jump through the call stack, look at other threads, etc. I may also determine I want some boolean expressions in my breakpoints or I want to add a memory break when a variable changes.
    I have a very hard time believing this is particularly efficient.
    Now, I will admit, we only saw the setup here and the juice might very well be worth the squeeze but I have to see more.

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

    waiting for the JS one :)

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

      Would you prefer web, node or deno flavored javascript?

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

      @@dreamsofcode web + node could be easily covered in a video, right? not sure about deno, haven't gotten my hands dirty with it.

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

    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.

  • @sparlockthewarrior-wizard3016
    @sparlockthewarrior-wizard3016 4 หลายเดือนก่อน

    This is pretty great. One issue I have though about .clang-format. In your exemple, you have a single cpp file in the same folder as .clang-format. But typically you want the .clang-format file in your project's root directory with source files in subfolders. If I try to do that, the file doesn't get detected if I run nvim on the root folder without any arg. It gets the default clang format. The only way I found is to have a dummy cpp file at the root (same folder as .clang-format file) and have nvim open it. Then going through folders with ctrl-n, other files I open will use my .clang-format as well. But it's not fantastic.

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

    Where is the nvchad 2.0 ver command for windows

  • @dagoberttrump9290
    @dagoberttrump9290 18 วันที่ผ่านมา

    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?

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

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

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

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

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

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

    THank you so much for sharing!. Can you please make a tutorial o how to setup nvim for java application development.

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

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

      Yeah, I'm working on a video about it now. News dropped after I had uploaded and was waiting for review.

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

    I requested and you delivered. Thank you!

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

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

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

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

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

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

      Thank you! I really appreciate that.

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

    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

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

    clang format is already contained withing clangd, there's no need to install it using null ls

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

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

      Do you have a compiler for c++ installed

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

      @@ziphy_6471 yeah I’m on macOS I have clang

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

      @@ziphy_6471 yeah i have clang for macos

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

    Awesome video edition!!

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

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

    Good job! thanks for this amazing video

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

    Hi, I’ve followed your guide but I’m using Mac OS. Everything’s fine except for the formatting part.
    There isn’t a folder called Clang-format in my path but only a file and I’ve got an issue with the command ‘-style’ which the terminals says it doesn’t exist.
    Can you help me? Or someone here Who has more expertise than me with this kind of configuration?

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

    If you could do one of these for JVM (Java, Kotlin, Scala) you would be my hero 🙏

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

      Java is going to be voted on for the next one!

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

    Nice content. What desktop environment do you use?

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

    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.

  • @user-hp1dx4tf2b
    @user-hp1dx4tf2b ปีที่แล้ว

    Great video! Would you mind please share the setup of your terminal as well? thanks.

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

    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.

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

    please make configuration for front end too, seems legit

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

    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?

  • @omarjadiani1205
    @omarjadiani1205 ปีที่แล้ว +39

    Do a neovim for flutter, bro ❤

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

      I shall add it to the next vote!

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

      Will love to see it.

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

      doesn't flutter need full heavy IDE
      I mean you need this to access an emulator easily for testing mobile app
      I don't disagree with your comment but this comment surprised me

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

      @@theplant4046 I've seen some people using neovim, and it works perfectly. You just need some plug-ins, and you can do everything an ide does

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

      @@theplant4046 I use neovim + tmux for flutter. It’s a nice experience

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

    Hello, I followed exactly your instructions and it worked well for several months. But now suddenly I do not know what happend recently (I was not using c++ for some time) there is some error detecting standard header files. For example it says "'iostream' file not found". I am using mac os. Do you know what might be the problem?

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

    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?

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

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

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

    please make video of ur arch linux setup and whole theme

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

    got error while doing "TSInstall cpp"
    ERROR : No c compiler found ! "cc", "gcc", "clang", "cl", "zig" are not executable.

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

      Do you have clang installed on your machine?

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

      @@dreamsofcode it worked i didnt had gcc compiler in my system, i installed it and it worked

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

    Love this video. Please make a nvchad setup for unity development. Please 🙏

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

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

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

    The best Setup for C++ is Visual Studio, till this date. Nothing will probably change that, ever.

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

      Visual Studio. That's bold. I used to use it back when did C++ Game Development on windows. I definitely did not enjoy it compared to something such as Bloodshed.
      Not sure if they have a macOS / Linux version though....

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

      @@dreamsofcode Thanks for your reply, I was a bit intentionally provocative. :)
      I used Windows and Arch on and off. Currently back on Windows and I used to develop a ton of C/C++.
      While I admit you are able to tune NVIM these days wonderfully (just as with your video, thanks for that), I still stand with Visual Studio being the best option possible. It's additional features like Profiling, the intense debugging possibilities etc is just unmatched. It's INSANELY powerful.
      I think there's a mac version, but sadly no Linux version yet. Also it's UI is obviously not as sexy as NVIM.
      In the end, if it gets the job done for you and has all necessary features, it's the best possible solution for you, as individual! :]

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

      @@longdashes
      I appreciate your comments, even if they are provocative. They're always respectful, and that's what matters to me.
      Visual Studio is a great choice! Editors are tools at the end of they day :). For me (and I think others) the idea behind neovim is that it's a powerful enough tool that can be used for any language. It's likely never going to be the best editor, but it is the most loved and can work for any language, which I hope to set out and prove!

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

      @@dreamsofcode I absolutely agree! NVIM is splendid.

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

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

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

      JetBrainsMono Nerd Font!

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

    This is great!
    Is there an easy way to have nvim configured for both Python and C++? How would you go about switching between both functionalities
    I watched your Python one and it really helped me get up and running quickly with nvim. I thought it was going to be an absolute nightmare trying to do it on my own. Thanks for these!