- clone this repo
git clone https://github.com/chanchann/cc.vim.git
- run instsall script
cd cc.vim
sudo apt update
chmod +x install.sh
sudo ./install.sh
- install plugin
First open nvim
nvim
:PlugInstall
- ccls for your project
The key is to generate compile_commands.json for your project
- For cmake :
mkdir build && cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=On ..
cd ..
ln -s build/compile_commands.json
or add in your CMakeList.txt
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)For blade:
blade dump --compdb --to-file compile_commands.json
- Beautiful UI
- File Manager
ctrl + p to find files quickly
- Text Search
:Ag or :Rg
- File list
ctrl + f to open the file list
- Tags
ctrl + t to open the tags
- �Code completion
- Format
Copy .clang-format to you project root