Skip to content

chanchann/cc.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configure Steps

  1. clone this repo
git clone https://github.com/chanchann/cc.vim.git
  1. run instsall script
cd cc.vim

sudo apt update

chmod +x install.sh

sudo ./install.sh
  1. install plugin

First open nvim

nvim 

:PlugInstall
  1. 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

Introduction

  1. Beautiful UI

ui

  1. File Manager

ctrl + p to find files quickly

file

  1. Text Search

:Ag or :Rg

search

  1. File list

ctrl + f to open the file list

filelist

  1. Tags

ctrl + t to open the tags

tags

  1. �Code completion

completion

  1. Format

Copy .clang-format to you project root

About

neovim config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors