This is my config for Neovim v0.12.X powered by NvChad v2.5
- All features of latest NvChad
- C++ and Rust autocompletion, autoformatting, syntax highlighting and debugging
- Debugging:
<leader>dbtoggles breakpoint on line<F5>starts debugger<F5>tstops debugger<F5>rrestarts debugger<F6>steps into the code<F7>steps over the code<F8>steps out of the code
Apparently,
curlcommand installed viasnapmay have some issues withnvim-treesitterand it may not get things installed, so I would recommend to reinstall it viaaptsudo snap remove curl sudo apt install curl
If you are completely new to Neovim and don't have it installed, don't worry, I got you covered
First of all, install some Nerd Font that suits you as your terminal font
- Make sure that the font you set doesn't end with Mono to prevent small icons. For exmaple, JetbrainsMono Nerd Font Mono is not suitable, use JetbrainsMono Nerd Font
Then install Neovim itself:
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gzDon't forget to include absolute path to Neovim executable in ~/.bashrc so you don't have to call it's absolute path everytime you run it.
Put this line in the end of .bashrc file
export PATH="$PATH:/opt/nvim-linux-x86_64/bin"You still can install Neovim by
aptbut the version of it there is really outdated and something probably won't work with this config.
You would need to have python3-venv installed to install clangd
sudo apt install -y python3-venvDelete your previous Neovim configs:
rm -rf ~/.config/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.local/share/nvimAnd install this config:
git clone https://github.com/gohy907/nvim ~/.config/nvim && nvim Wait for lazy.nvim to install all the plugins. After that open mason.nvim by :Mason command and wait it to end installing LSPs and formatters
To install C++ debugger run :MasonInstall codelldb and wait for mason.nvim to install it
After mason.nvim finishes with that, reopen Neovim and you are ready to go!
Delete this config with these commands:
rm -rf ~/.config/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.local/share/nvim