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

Поделиться
HTML-код
  • Опубликовано: 21 авг 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

Комментарии • 76

  • @summereasy
    @summereasy Месяц назад +2

    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  Месяц назад +1

      @@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 дней назад +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 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.

  • @pedrodecomorreno
    @pedrodecomorreno 21 день назад +1

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

  • @ValentinSW
    @ValentinSW Месяц назад

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

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

  • @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 Месяц назад +2

    needed this so bad

  • @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 дня назад +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 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 дня назад +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 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  Месяц назад +1

      @@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 дней назад +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  6 дней назад +1

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

    • @geekygiganerd
      @geekygiganerd 3 дня назад

      @@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 дней назад +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 27 дней назад +1

      @@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 день назад +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  21 день назад +1

      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

  • @johnmichaelechavez5979
    @johnmichaelechavez5979 18 дней назад

    Can you make golang nvchad

    • @ProgrammingRainbow
      @ProgrammingRainbow  18 дней назад +1

      @johnmichaelechavez5979 Yeah let me have a look

    • @ProgrammingRainbow
      @ProgrammingRainbow  17 дней назад +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 Месяц назад +1

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

    • @ProgrammingRainbow
      @ProgrammingRainbow  Месяц назад +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.

    • @jenniferdarline
      @jenniferdarline Месяц назад

      curious

    • @ProgrammingRainbow
      @ProgrammingRainbow  Месяц назад +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.

    • @jenniferdarline
      @jenniferdarline 20 дней назад

      @@ProgrammingRainbow No worries friend I was not questioning you.