No video

NvChad - neovim, treesitter, lspconfig, lint and conform - Archlinux

  Рет қаралды 3,242

Programming Rainbow

Programming Rainbow

Күн бұрын

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

Пікірлер: 76
@summereasy
@summereasy Ай бұрын
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!
@ProgrammingRainbow
@ProgrammingRainbow Ай бұрын
@@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.
@methuselahmark7818
@methuselahmark7818 20 күн бұрын
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
@ProgrammingRainbow
@ProgrammingRainbow 20 күн бұрын
@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.
@methuselahmark7818
@methuselahmark7818 20 күн бұрын
@@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?
@ProgrammingRainbow
@ProgrammingRainbow 20 күн бұрын
@@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.
@sanjeewanayanananda9657
@sanjeewanayanananda9657 28 күн бұрын
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.
@ProgrammingRainbow
@ProgrammingRainbow 28 күн бұрын
@sanjeewanayanananda9657 Thank You.
@pedrodecomorreno
@pedrodecomorreno 21 күн бұрын
I think this is the only video that explains it so that everyone can understand. Thank you very much
@ProgrammingRainbow
@ProgrammingRainbow 21 күн бұрын
Thank you.
@ValentinSW
@ValentinSW Ай бұрын
Thank you, this helped me to better understand nvchad and neovim configurations. Everything works flawlessly now 👍
@ProgrammingRainbow
@ProgrammingRainbow Ай бұрын
That is great to hear.
@d7g.x
@d7g.x 25 күн бұрын
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
@ProgrammingRainbow
@ProgrammingRainbow 25 күн бұрын
@@d7g.x Thank you, that's great to hear.
@dgoncalo
@dgoncalo 18 күн бұрын
Just discovered this amazing channel. Thank you so much for the effort you put into these videos, the absolute best content! insta-sub!
@ProgrammingRainbow
@ProgrammingRainbow 18 күн бұрын
Thank you so much. I am constantly learning how to make it better.
@jackyzheng55
@jackyzheng55 Ай бұрын
needed this so bad
@ProgrammingRainbow
@ProgrammingRainbow Ай бұрын
@@jackyzheng55 I'm happy it was useful.
@Marckfederer
@Marckfederer 23 күн бұрын
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
@ProgrammingRainbow
@ProgrammingRainbow 22 күн бұрын
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.
@Marckfederer
@Marckfederer 22 күн бұрын
​@@ProgrammingRainbowoh i saw them , thnks again and best of luck
@Marckfederer
@Marckfederer 22 күн бұрын
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 ?
@ProgrammingRainbow
@ProgrammingRainbow 22 күн бұрын
@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.
@Marckfederer
@Marckfederer 22 күн бұрын
@@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?
@MikeMcGowan-y2b
@MikeMcGowan-y2b 6 күн бұрын
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.
@ProgrammingRainbow
@ProgrammingRainbow 6 күн бұрын
@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.
@chocoblan4288
@chocoblan4288 Ай бұрын
素晴らし
@ProgrammingRainbow
@ProgrammingRainbow Ай бұрын
@@chocoblan4288 どうもありがとうございます。
@Programus-oy6yy
@Programus-oy6yy 19 күн бұрын
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
@ProgrammingRainbow
@ProgrammingRainbow 19 күн бұрын
@@Programus-oy6yy is this a c or cpp file?
@Programus-oy6yy
@Programus-oy6yy 19 күн бұрын
@@ProgrammingRainbow cpp file
@ProgrammingRainbow
@ProgrammingRainbow 19 күн бұрын
@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.
@geekygiganerd
@geekygiganerd 6 күн бұрын
Hello there, sorry to bother you again but why don't you have nvchad plugin in your repository?
@ProgrammingRainbow
@ProgrammingRainbow 6 күн бұрын
@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.
@ProgrammingRainbow
@ProgrammingRainbow 6 күн бұрын
look at nvchad/starter and also look at init.lua
@geekygiganerd
@geekygiganerd 2 күн бұрын
@@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.
@geekygiganerd
@geekygiganerd 27 күн бұрын
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
@ProgrammingRainbow
@ProgrammingRainbow 27 күн бұрын
@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.
@geekygiganerd
@geekygiganerd 27 күн бұрын
@@ProgrammingRainbow not a network error for sure. I got all the dependencies and latest versions. I also cleared all previous configs and caches
@ProgrammingRainbow
@ProgrammingRainbow 27 күн бұрын
@@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.
@geekygiganerd
@geekygiganerd 27 күн бұрын
@@ProgrammingRainbow I'll try & let you know.. thank you for the support 💙
@geekygiganerd
@geekygiganerd 27 күн бұрын
@@ProgrammingRainbow does the NvChad setup expect lazy vim plugin manager to be already installed? I didn't have any plugin manager setup.
@Programus-oy6yy
@Programus-oy6yy 21 күн бұрын
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
@ProgrammingRainbow
@ProgrammingRainbow 21 күн бұрын
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.
@ProgrammingRainbow
@ProgrammingRainbow 21 күн бұрын
There is also my initial code for Yellow-Snow in C++ 20.
@Programus-oy6yy
@Programus-oy6yy 21 күн бұрын
@@ProgrammingRainbow I get it, I will try fixing my issues.. thnks for everything 👍
@NOBLENAGA007
@NOBLENAGA007 Ай бұрын
First.... lol Been waiting a decade to do that
@ProgrammingRainbow
@ProgrammingRainbow Ай бұрын
@@NOBLENAGA007 Lol
@johnmichaelechavez5979
@johnmichaelechavez5979 18 күн бұрын
Can you make golang nvchad
@ProgrammingRainbow
@ProgrammingRainbow 18 күн бұрын
@johnmichaelechavez5979 Yeah let me have a look
@ProgrammingRainbow
@ProgrammingRainbow 17 күн бұрын
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.
@siduck_og
@siduck_og Ай бұрын
hi, you're supposed to use nvchad starter. not fork the main repo
@ProgrammingRainbow
@ProgrammingRainbow Ай бұрын
@@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.
@jenniferdarline
@jenniferdarline Ай бұрын
curious
@ProgrammingRainbow
@ProgrammingRainbow Ай бұрын
@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.
@jenniferdarline
@jenniferdarline 20 күн бұрын
@@ProgrammingRainbow No worries friend I was not questioning you.
Setting up Alacritty, Fish, Nerd Font for Archlinux.
40:55
Programming Rainbow
Рет қаралды 1,7 М.
I forced EVERYONE to use Linux
22:59
NetworkChuck
Рет қаралды 406 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 13 МЛН
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 65 МЛН
I'm Never Using Neovim's Terminal The Same Again
8:43
DevOps Toolbox
Рет қаралды 36 М.
Null-ls IS BEING ARCHIVED | Prime Reacts
32:02
ThePrimeTime
Рет қаралды 91 М.
The Other Linux for Furries...
41:40
WindowsG Electronics
Рет қаралды 79 М.
Ultimate Starship Shell Prompt Setup From Scratch
11:28
Henry Misc
Рет қаралды 2,2 М.
NvChad - Neovim - Python (Dreams of Code) - Archlinux
49:32
Programming Rainbow
Рет қаралды 118
I Spent 18 Months Using Rust And Regret It
38:36
ThePrimeTime
Рет қаралды 313 М.
The Holy Grail of Neovim Note Taking
14:38
DevOps Toolbox
Рет қаралды 324 М.
tree-sitter explained
15:00
TJ DeVries
Рет қаралды 81 М.
Vim Tips And Tricks Some Of My Favorite Vim Commands
17:05
DistroTube
Рет қаралды 63 М.
Linux from Scratch
2:35:42
Titus Tech Talk
Рет қаралды 148 М.