Skip to content

Commit

Permalink
A few fixes for YCM contrib docs and code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwidman authored and tarruda committed Oct 21, 2014
1 parent 7e1b285 commit fe7db21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contrib/YouCompleteMe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 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.
This provides the code necessary to configure vim's YCM plugin to provide C semantic support (completion, go-to-definition, etc) for the Neovim project.

## Installation

Expand All @@ -17,6 +17,6 @@ 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)
(Add the following somewhere in your .nvimrc files)
autocmd FileType c nnoremap <buffer> <silent> <C-]> :YcmCompleter GoTo<cr>
```
3 changes: 2 additions & 1 deletion contrib/YouCompleteMe/ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def DirectoryOfThisScript():


def GetDatabase():
compilation_database_folder = DirectoryOfThisScript() + '/../build'
compilation_database_folder = os.path.join(DirectoryOfThisScript(),
'..', 'build')
if os.path.exists(compilation_database_folder):
return ycm_core.CompilationDatabase(compilation_database_folder)
return None
Expand Down

0 comments on commit fe7db21

Please sign in to comment.