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.
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.
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.
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 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.
@@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
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?
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
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.
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)
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?
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.
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 :)
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
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?
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. :/
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.
@@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 :')
@@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.
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.
@@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.
@@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
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.
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?
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?
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.
@ 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.
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!
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?
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.
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
@@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.
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
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 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 :)
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
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
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!
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
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?
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?
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?
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.
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?
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?
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.
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’)”
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
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?
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 🙏🙏
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.
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
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!
@@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!
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?
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
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.
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
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!
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.
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 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 🥲
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.
could you create Neovim setup for C?
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.
@@fattoofittoo7907 for c also same or different ?
Just when I was about to resume my old c++ project from a hiatus, you dropped this! What a great timing.
I hope it helps!
i can smell procrastination
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!
Was there ever a video on nvim plugin for cmake/makefile? If not anybody have a setup for those?
@@thartanian he never did it
@@thartanian Honestly if you're still learning building C++ with cmake you should just use clion with the vim plugin. Set this up later.
@@jayhathaway4720 lol funny you mention that, I got CLion just recently, it's great ty!!
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.
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 !!
Thank you for the feedback! I appreciate it and am very glad you like the content!
You forgot the "btw"
@@scraped_2454 😂 aww man !!
guys, this guy uses arch linux btw
@@roshanpaudel6352 Game is the game
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.
This is a great idea!
Lazygit
ironically, java is the only language I wouldn't use nvim for just because intelliJ is so goated. ideavim is a must though obviously
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.
Did you find a solution?
@@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.
@@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
Do you have any good sources to follow for the new NV chad version
@@saitejageddada3109 Unfortunately no, I hacked it together wtih ChatGPT. :\
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?
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
HUGE value in this video, just getting into nvim plus c++, this is the video I needed :)
Dude you are actually teaching me Nvim so easy then any video on youtube bro. Thank you
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.
did you find a solution for this?
same problem here..
Same here
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
same
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)
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?
Any idea on what you're going to use going forward since null-ls is archived?
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.
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.
First class tutorial mate! Not only go through the c++ setup but you also go through how to navigate through neovim!
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 :)
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
I had to use cpptools instead of codelldb. cpptools can be installed using mason as well
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?
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. :/
having the same problem
Can you do the perfect neovim configuration for Java please. That would be amazing and most appreciated. :D
It's going to a vote for the next video!
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.
@@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 :')
@@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.
Get NormalNvim, it comes with formatter, debugger, and all the stuff preconfigured.
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.
This is an awesome suggestion. I may do a dedicated video to this plugin!
The clangd lsp already supports this via ClangdSwitchSourceHeader. I'm sure it's a cool plugin, unnecessary if you have lsp set up though
@@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.
@@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
@@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
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.
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?
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.
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?
i found the same problem as you, have you got an answer?
@@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.
@ i think is the clang version tho, everytime i downloaded that problem happened regardless of the IDE/text editor
@@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.
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.
This video can't be better. Thank you soooooooo much!
Awesome video! I got into Neovim thanks to you and I'm absolutely loving it. Thank you for the amazing content 😊
Great video - i would love if you could cover the promised Cmake/make integration within Nvim -
Thank you for all your work, there was no other guide that was as thorough as this.
Glad it was helpful!
The video I was waiting for, thanks dreams!
I hope it helped!
you are a life saver, your video is just clear, easy to follow
May I know which Neovim plugin offers us lightbulb/warning icon for Linter warnings in 5:19 ?
Can you make an updated tutorial for this using nvim kickstart? Cant quite get this to work with the new NVChad, neither with kickstart
This is great, can you tell us what you use to create these amazing visuals in the video? What video editor and your configuration?
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!
hey uhh.. my clangd isn't recognizing standard headers, i 've followed the lsp installing instruction
me to
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?
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.
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
Really like your videos dude! Please keep it up.
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.
Why version of the nerdfont do you have installed? There was an update recently!
@@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.
😢😢😢😢😢 I'm tired to configure neovim autocompelete for c/c++ on windows with mingw compiler... Can someone help me with it😢😢
me too
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
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
same here, do you resolve it?
@@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 :)
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
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
Great video exactly what I was looking for , can you please make a video/doc about the build plug-in you talk about thanks
I don't see a video he made about that, do you have the setup tho?
Does anyone know if this setup works only for C++ or also for C langauge?
I tested it on some C code and it seems to be working fine
thank you for this video working exactly as you told in my own neovim configuration
Where is the nvchad 2.0 ver command for windows
I requested and you delivered. Thank you!
You're very welcome. I hope you like it!
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
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!
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
Hello ! Will you make an other tutorial with a newer version of NVChad?
This video is superb. I love your explanation and how you go through every single step. Very helpful! Thanks so much.
Thank you so much. I really appreciate that feedback!
Great video man, the arch/nvim comunity most trully thanks and apreciate you
Thank you! I really appreciate that.
Thanks for the config files in the description.
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?
Hello, I am trying to connect cmake to nvchad. Can you please help?
Thank you! much appreciated for this!
This is an awesome series ! And it'd be cool if u could do a video for configuring neovim for java
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?
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?
Thanks for the tutorial. Was the video on how to invoke custom commands to build and jump to source code with errors ever created?
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.
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?
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?
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.
6:30 my neovim doesn't see iostream. 'iostream' file not found'
same does anyone have an answer its really annoying
It might be to do with your library path. Did you manage to get it sorted?
@@dreamsofcode this error disappeared after reloading pc
Can someone help me?
Error in processing init.lua
Invalid spec module: 'plugins'
Expected a 'table' of specs, but a 'nil' was returned instead
Great video. Could you please tell me what font you are using?
JetBrainsMono Nerd Font!
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’)”
Were you able to fix it?
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
What I can do if I don't want to do the terminal command for compile every time?
Amazing tutorial! Thank you.
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
can u share full system conf ..?
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?
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 🙏🙏
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.
Great effort
thank you so much
We need Front-End tools video
Nice content. What desktop environment do you use?
Thanks a lot for the video. Is there similar instruction on how to add CMake support?
how can you combine the python and c++ setup. Trying it breaks one or the other
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
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!
@@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!
@@leo-oh1bc Thank you for the description! I'll have a look and see if I can find a similar plugin / behavior!
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?
Awesome video edition!!
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
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.
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?
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.
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
Hmm that's annoying. If you jump in my discord we can take a look!
Might need to generate a compile_commands.json for those suggestions to be made
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!
I figured out that it is enabled by default in clang-16.
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.
are you planning to do the same for react by any chance?
I am!
Good job! thanks for this amazing video
Great video! Thank you for it!
Thanks for this helpful video. I'm waiting to you share cmake plugin usage video which you mention at 16:00
Hi :),
Everytime MasonInstallAll is executed clangd is getting downloaded, is there any way to avoid this if its already installed ?
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.
Yeah, it's a breaking change. You can still use the existing branch which is in the description and the comments
@@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 🥲