NvChad - neovim, treesitter, lspconfig, lint and conform - Archlinux
Вставка
- Опубліковано 5 вер 2024
- How to install and configure NvChad for Archlinux
A guide for installing NvChad a NeoVim config for Archlinux. This will also cover setting up treesitter, lspconfig, lint and conform. It will also cover automating mason package installs with mason-lspconf, mason-lint and mason-conform.
Github:
github.com/Pro...
@ProgrammingRainbow
A big thank you for the detailed information shared. This is pure gold. I could understand the amount of effort went in to make this video after lots of research and experimenting different settings. It was really helpful to understand on why each piece is required and how to integrate into the NvChad ecosystem. The surprising part is you haven't enabled any ads on a ~2 hr video. God bless you man! You are simply amazing.
I'm new to UA-cam. I'm not monetized and actually don't even know how that works. It says i need 3000 hours of view time. But also i don't know what adds look like on youtube since i never see them. I would think youtube would automatically put ads in? But yeah I'm happy it was informative that is what I wanted when making these videos. I'm no expert but I think every bit of knowledge shared is helpful to the next person.
Really great introduction to configuring neovim. I've seen many videos about configuring neovim and none of them went into detail like you. you demonstrated it very well. subscribed
@@iHapiW Thank you 😊
OMG You did it in a way Not only to show some 'good configs' but also how to understand them and even how to debug with them. I've never seen something like this. I've learned a lot, really appreciate your work. Big thumbs up and looking forward to your next video!
@@summereasy Thank you very much. This was also for my own learning too. I have struggled to understand neovim. I'm so glad this has been helpful.
I'm still struggling to understand it and I hope I do after this video.
My pc says to the lua-language in mason that this is not supported
Help@@ProgrammingRainbow
@methuselahmark7818 what part did you get hung up? Did you git clone my repo or the nvchad starter? What error messages did you get? :messages will show them again.
@@ProgrammingRainbow TSinstall doesn't work
If I tried to use lua-language in mason it doesn't work with some other mason too
I don't know if it's because I am using it on tmux on my android?
@@methuselahmark7818 You're pretty far outside of the environment I'm using. Android is pretty different from Gnu. But I would pay close attention to what error messages you get. Simply saying lua-language doesn't work isn't too helpful. Getting a word for word error message can be useful to search it or ask someone or an llm. But I don't know if nvchad is supported at all on android or even neovim or lua.
I think this is the only video that explains it so that everyone can understand. Thank you very much
Thank you.
Thank you very much for this. There is no much NvChad customizations videos out there and the ones that there is are quick and simple ones. This explanation of yours really helps.
@sanjeewanayanananda9657 Thank You.
Thank you, this helped me to better understand nvchad and neovim configurations. Everything works flawlessly now 👍
That is great to hear.
a big thanks for this tutorial you really make it simple, i was really struggling with NvChad to customise it now finally ii can do it
@@d7g.x Thank you, that's great to hear.
Just discovered this amazing channel. Thank you so much for the effort you put into these videos, the absolute best content! insta-sub!
Thank you so much. I am constantly learning how to make it better.
needed this so bad
@@jackyzheng55 I'm happy it was useful.
what a amazing taturial and clear explaination, a big thnks for ur efforts ❤❤
im hoping that if u can make another video for cpp language by using the same method
I have added to the bottom of the nvchad-2.5 repo simple instructions for adding C support. It will give lsp, linting, and formatting with 4 spaces. Just follow that. I have also updated the nvchad config files in the repo to add it. But they are commented out. So if you like you can look at those 2 files or pull the repo. And just comment them.
@@ProgrammingRainbowoh i saw them , thnks again and best of luck
Hey bro , The changes you made for c/cpp worked very good , but I faced some issues with the header of iostream , when I enter #include i i got this warning >> Included header iostream is not used directly (fix available)
and After that I remembered what you did with the same issue with lua and I did the same with clangd too by adding this changes inside of lspconfig.clangd.setup
settings = {
clangd = {
diagnostics = {
enable = false,
},
},
},
and it worked good i no longer got warning about including iostream or any related lib
i just wanna know if what I did is the correct job or maybe i will face some problems later ?
@Marckfederer The reason I disable diagnostics in the other one was because I was using a different package for linting. For C and Cpp the clangd is perfered. What happens when you simply remove the offending included? It may not be needed.
@@ProgrammingRainbow I commented out the added changes i made to test what you suggest and indeed everything worked well and all iostream , strings ... objs working very well ..
in this case its normally to no needed for including iostream and other libs
but the prob is if I want to run my program in terminal or in any ide i think i will get errors about not including libs , so i will need again to includ them ..
its not good for me to do this each time I switch between nvim editor and compiler running...
do you have any idea?
It's a small thing, but I noticed you said "shift-colon" a couple of times. The 'CMD' plugin lets you just type ';' (i.e. without shift) to enter command mode.
@MikeMcGowan-y2b Wow yes your right. This is something I didn't know about. It seems nvchad has a remap. But this isn't vanilla neovim behaviour. But thanks for pointing this out.
why i got this error each time I opend brackets
Error detected while processing TextChangedI Autocommands for
"":
method textDocument/signatureHelp is not supported by any of t
he servers registered for the current buffer
@@Programus-oy6yy is this a c or cpp file?
@@ProgrammingRainbow cpp file
@Programus-oy6yy You're using my old buggy version. In lspconfig, remove "client.server_capabilities.signatureHelpProvider = false" I would check the latest from github I changed several things before the video.
素晴らし
@@chocoblan4288 どうもありがとうございます。
Thank a lot this all what i need tell me since all my focus is one c and cpp language is it possible to ignore luayls installation and stylua
each time i opened any nvim they said that installing these staff was failed
The reason why i set up the lua is because neovim is configured in lua. So you need it installed no matter what language your programming in. It's also built in so i wouldn't remove them. But what i did was set it up so you can easily add other languages. If you go to the github page for this video and scroll down to the bottom you will see all the needed info on how to add C and Cpp with syntax highlighting, LSP, Linting and formatting. It's actually just some small add-ons. Most of the formatting code i added is because i prefer 4 spaces not 2. If you pull my repo you will also see that C and Cpp is already added but it's commented out in lspconfig treesitter and conform.
There is also my initial code for Yellow-Snow in C++ 20.
@@ProgrammingRainbow I get it, I will try fixing my issues..
thnks for everything 👍
Hey, Iam having a problem that says "nvchad requires neovim 0.1.0+"
what version of neovim are you using? I just checked mine and I'm on 0.10.1. But I'm also on Arch BTW so if youre not on arch you may have an older version. What system and version do you have.
@@ProgrammingRainbow Iam on 0.9.8 in kali which it should be the latest
@@kodeq1 It looks like Kali Linux is debian testing branch? I'm not very sure about Kali. Debian is great for using old software and not updating things. This is good for servers but not for Desktop use with latest software. 0.10 has been out for about 6 months i think. So I am sure it will come to Kali but not sure about how long it will take. I was not able to find a simple solution for getting neovim on Kali that doesn't involve just compiling it from scratch. So i don't have a very good answer. It does appear that nvchad needs 0.10 but i am not sure the best way to get that onto Kali. I would ask if there is a specific reason you use Kali?
@@ProgrammingRainbow cyber security. I think i might be able to download nvim from github and get the latest version
Hello there, sorry to bother you again but why don't you have nvchad plugin in your repository?
@geekygiganerd It is nvchad. The nvchad plugins are implicitly pulled in when you first start nvim. This is how it's done from nvchad starter, the one you install straight from their repo. You are not meant to download nvchad directly.
look at nvchad/starter and also look at init.lua
@@ProgrammingRainbow hi just came here to say thanks. I could finally install this config using your repo.. the problem I was facing was due to the internet & I think partly due to my low end old PC, I used a codespace on GitHub to set it up first and then used some tactics to copy things to my pc and install the plugins properly. What a relief.
Installation failure.. tried everything.. please help
error:
Error detected while processing /home/dampdigits/.config/nvim/init.lua:
Plugin ui is not installed
E5113: Error while calling lua chunk: cannot open /home/dampdigits/.local/share/nvim/nvchad/base46/defaults: No such file or directory
stack traceback:
[C]: in function 'dofile'
/home/dampdigits/.config/nvim/init.lua:32: in main chunk
@geekygiganerd I'm sorry to hear it didn't work. My instinct is that a connection issue happened and it wasn't able to download one of the nvchad packages. Could you try removing the .local/share/nvim and .local/cache/nvim then relaunch nvim. It should start auto downloading packages. If you get ant errors, try to take note of them. Or in nvim :messages to view those messages. Because it could have been a simple network error, or it may be your missing a required tool or dependency.
@@ProgrammingRainbow not a network error for sure. I got all the dependencies and latest versions. I also cleared all previous configs and caches
@@geekygiganerd
When i looked for that error i was only able to find a reference to someone converting. But the error is telling you that your missing the nvchad package. For some reason it didn't get downloaded with Lazy. I am not sure if you got this error when cloning the nvchad starter or when cloning my own repo. To test it lets just try my own repo first.
cd
rm -rf ~/.config/nvim
rm -rf ~/.local/cache/nvim
rm -rf ~/.local/share/nvim
git clone github.com/ProgrammingRainbow/NvChad-2.5 ~/.config/nvim
nvim
If you are still getting the same error inside nvim can you give this command :Lazy to open the lazy package manager and see if it did install nvchad and about 10 other packages.
@@ProgrammingRainbow I'll try & let you know.. thank you for the support 💙
@@ProgrammingRainbow does the NvChad setup expect lazy vim plugin manager to be already installed? I didn't have any plugin manager setup.
Nice! Could you make one about rust?
I haven't used rust in neovim yet but I am sure i could find a basic setup and show how to implement it, like the other languages. That way people can fine tune it for themselves.
@@ProgrammingRainbow I know that rustaceanvim is part of the party! but there are other things...
@@LinuxForLife So what is the LSP linter formatter and also treesitter files that need to be involved with your rust projects?
@@ProgrammingRainbow idk
First.... lol Been waiting a decade to do that
@@NOBLENAGA007 Lol
Can you make golang nvchad
@johnmichaelechavez5979 Yeah let me have a look
I have some instructions for Golang on my NvChad page. If you would like to give them a try and let me know if it's works will or if there is issues. It has syntax highlighting, LSP, Linting, and formatting.
hi, you're supposed to use nvchad starter. not fork the main repo
@@siduck_og Yes I did use starter. At first to show the end result I cloned my own repo. Then I wiped it a used starter.
curious
@jenniferdarline At 0:55 seconds, I clone my own repository with the end result to show what it will become. At 12:40 I clone nvchad/starter, which is the official way to pull nvchad and then start building it up. I like to show the end result first in my videos.
@@ProgrammingRainbow No worries friend I was not questioning you.