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

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 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

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

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

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

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

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

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

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

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

    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.

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

    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.

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

      I'm new to TH-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.

  • @cmdrkylekrein7173
    @cmdrkylekrein7173 14 วันที่ผ่านมา +1

    Thank you so much! I tried neovim several times already, but every time I tried to do something with plugins or different configs from other people, it was too hard to understand, how does everything work and everything was like a black box for me. But not in case with your guidance.
    Usually I watch youtube videos at 2.5x speed, but this video I watched and followed at 1x, because it was really helpful

    • @ProgrammingRainbow
      @ProgrammingRainbow  14 วันที่ผ่านมา +1

      @cmdrkylekrein7173 Thank you very much. I know your pain. It took me 3 honest attempts before I could get working with neovim.

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

    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

  • @brandonh2690
    @brandonh2690 26 วันที่ผ่านมา

    This is legit the Rosetta Stone of Neovim. The work you put into this is so impressive . 🙏🙏🙏

  • @fahadmohamed5734
    @fahadmohamed5734 21 ชั่วโมงที่ผ่านมา

    I subs already when you said "i just press the number 5" to show the viewer how you navigate between the tabs ❤❤😂😂😂

    • @ProgrammingRainbow
      @ProgrammingRainbow  20 ชั่วโมงที่ผ่านมา

      @@fahadmohamed5734 Thank you

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

    I think this is the only video that explains it so that everyone can understand. Thank you very much

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

    Thank you, this helped me to better understand nvchad and neovim configurations. Everything works flawlessly now 👍

  • @d7g.x
    @d7g.x 2 หลายเดือนก่อน

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

      @@d7g.x Thank you, that's great to hear.

  • @hriddhitdatta454
    @hriddhitdatta454 22 วันที่ผ่านมา

    Do you plan on making a video for haskell, like you have for other languages? As you mentioned we'd want to avoid using hls from mason which makes the setup a bit challenging I think.

    • @ProgrammingRainbow
      @ProgrammingRainbow  22 วันที่ผ่านมา +1

      @hriddhitdatta454 Yes, I would like to. If you see me testing ffmpeg on the live stream, you will see me running some haskell. But I haven't got that much knowledge in haskell or setting up neovim. So I definitely will, but I'm not sure when.

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

    needed this so bad

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

      @@jackyzheng55 I'm happy it was useful.

  • @MikeMcGowan-y2b
    @MikeMcGowan-y2b หลายเดือนก่อน

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

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

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

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

      Thank you so much. I am constantly learning how to make it better.

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

    Hello there, sorry to bother you again but why don't you have nvchad plugin in your repository?

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

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

      look at nvchad/starter and also look at init.lua

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

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

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

    素晴らし

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

      @@chocoblan4288 どうもありがとうございます。

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

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

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

      ​@@ProgrammingRainbowoh i saw them , thnks again and best of luck

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

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

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

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

  • @Programus-oy6yy
    @Programus-oy6yy 2 หลายเดือนก่อน

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

      @@Programus-oy6yy is this a c or cpp file?

    • @Programus-oy6yy
      @Programus-oy6yy 2 หลายเดือนก่อน

      @@ProgrammingRainbow cpp file

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

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

  • @Programus-oy6yy
    @Programus-oy6yy 2 หลายเดือนก่อน

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

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

      There is also my initial code for Yellow-Snow in C++ 20.

    • @Programus-oy6yy
      @Programus-oy6yy 2 หลายเดือนก่อน

      @@ProgrammingRainbow I get it, I will try fixing my issues..
      thnks for everything 👍

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

    Hey, Iam having a problem that says "nvchad requires neovim 0.1.0+"

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

      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.

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

      @@ProgrammingRainbow Iam on 0.9.8 in kali which it should be the latest

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

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

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

      @@ProgrammingRainbow cyber security. I think i might be able to download nvim from github and get the latest version

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

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

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

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

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

      @@ProgrammingRainbow I'll try & let you know.. thank you for the support 💙

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

      @@ProgrammingRainbow does the NvChad setup expect lazy vim plugin manager to be already installed? I didn't have any plugin manager setup.

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

    Nice! Could you make one about rust?

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

      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.

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

      @@ProgrammingRainbow I know that rustaceanvim is part of the party! but there are other things...

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

      @@LinuxForLife So what is the LSP linter formatter and also treesitter files that need to be involved with your rust projects?

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

      @@ProgrammingRainbow idk

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

    First.... lol Been waiting a decade to do that

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

    Can you make golang nvchad

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

      @johnmichaelechavez5979 Yeah let me have a look

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

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

    hi, you're supposed to use nvchad starter. not fork the main repo

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

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

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

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