mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 08:44:06 +00:00
Improve YCM contrib: Improve documentation.
This commit is contained in:
committed by
Thiago de Arruda
parent
d9592fdbd0
commit
20649051dd
@@ -1,4 +1,8 @@
|
||||
# YouCompleteMe
|
||||
# YouCompleteMe Integration
|
||||
|
||||
## What is this?
|
||||
|
||||
This provides the necessary to configure vim's YCM plugin to provide C semantic support (completion, go-to-definition, etc) for the neovim project.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -9,7 +13,10 @@ Install [YouCompleteMe](https://github.com/Valloric/YouCompleteMe).
|
||||
### Step 2
|
||||
|
||||
```bash
|
||||
cp ycm_extra_conf.py ../../src/nvim/.ycm_extra_conf.py
|
||||
echo src/nvim/.ycm_extra_conf.py >> ../../.git/info/exclude
|
||||
make -C ../.. cmake
|
||||
cp contrib/YouCompleteMe/ycm_extra_conf.py src/.ycm_extra_conf.py
|
||||
echo .ycm_extra_conf.py >> .git/info/exclude
|
||||
make
|
||||
|
||||
(somewhere in you .vimrc files)
|
||||
autocmd FileType c nnoremap <buffer> <silent> <C-]> :YcmCompleter GoTo<cr>
|
||||
```
|
||||
|
||||
@@ -8,7 +8,7 @@ def DirectoryOfThisScript():
|
||||
|
||||
|
||||
def GetDatabase():
|
||||
compilation_database_folder = DirectoryOfThisScript() + '/../../build'
|
||||
compilation_database_folder = DirectoryOfThisScript() + '/../build'
|
||||
if os.path.exists(compilation_database_folder):
|
||||
return ycm_core.CompilationDatabase(compilation_database_folder)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user