dreamsofcode-io / neovim-cpp

62 stars 24 forks source link

Install not working missing support of NvChad v2.5 #8

Open bmihovski opened 3 months ago

bmihovski commented 3 months ago

Hello,

Thank you for the great script.

Can we have support of NvChad v2.5 which is the main version now (when git clone). Currently the install.sh is not working since is compatible with NvChad v2.0 only.

h3li0p4us3 commented 3 months ago

hi ;D right now, both install script and the configuration needs to be updated. however, if you want to install the previous version of NvChad, clone the v2.0 version from repository just like this:

git clone -b v2.0 https://github.com/NvChad/NvChad ~/.config/nvim --depth 1

don't forget to update install.sh and remove NvChad installation process from it.

bmihovski commented 3 months ago

Thank you, for the workaround. Do you know what steps needs to be done to migrate the current setup to the latest NVChad? We can do it manually at first and then automate it. I checked their documentation but the migration seems to not be so simple. I think they dropped the custom configuration support and the syntax is different now. I checked their repo and it seems v2.0 is completely out of support the latest commits are in 2.5 branch only.

baiwfg2 commented 3 months ago

This is exactly what I want to know. When I import this repo to nvchad 2.5, it reports:

image

baiwfg2 commented 3 months ago

@bmihovski see here:

https://gist.github.com/siduck/048bed2e7570569e6b327b35d1715404

https://nvchad.com/news/v2.5_release/

bmihovski commented 3 months ago

thank you I really love 2.0 because the custom is separated from the source. Now it can be really messed up. I will stick to 2.0 for a while. And most likely will start using the script once stop working

davidkennedydev commented 2 months ago

PR #10 fixed the Chad version, so C++ is back to working correctly. However, I still get the following error message when opening a CPP file:

 Failed to run `config` for nvim-dap-ui

/root/.local/share/nvim/lazy/nvim-dap-ui/lua/dapui/init.lua:36: nvim-dap-ui requires nvim-nio to be installed. Install from https://github.com/nvim-neotest/nvim-nio

# stacktrace:
  - ~/.config/nvim/lua/custom/plugins.lua:8 _in_ **config**
h3li0p4us3 commented 2 months ago

@davidkennedydev to fix this issue you need to add nvim-nio to your plugins.lua

bmihovski commented 2 months ago

PR #10 fixed the Chad version, so C++ is back to working correctly. However, I still get the following error message when opening a CPP file:

 Failed to run `config` for nvim-dap-ui

/root/.local/share/nvim/lazy/nvim-dap-ui/lua/dapui/init.lua:36: nvim-dap-ui requires nvim-nio to be installed. Install from https://github.com/nvim-neotest/nvim-nio

# stacktrace:
  - ~/.config/nvim/lua/custom/plugins.lua:8 _in_ **config**

@davidkennedydev Thank you for the changes. However, the suggested change is not solving the problem of having v2.5 installed with the script. v2.0 is out of support now and we will full refactoring to support 2.5

h3li0p4us3 commented 2 months ago

i have opened a pull request #11. it fixes all the issues with NvChad v2.5, until dreamsofcode-io approves my PR, you can use my repository for now.