Skip to content

Commit

Permalink
Merge pull request #128 from Shougo/insert_parent
Browse files Browse the repository at this point in the history
Fix #127 g:racer_insert_paren default is 0
  • Loading branch information
Shougo authored Mar 16, 2019
2 parents 5489f01 + 37aaebc commit a8771a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ Variable `g:racer_cmd` is optional. You do not need to use this variable if the
let g:racer_experimental_completer = 1
```

5. If you want to insert the parenthesis in the completion:

```
let g:racer_insert_paren = 1
```

## Example Mappings

vim-racer enables `C-x-C-o` to search for completions and provides several
Expand Down
2 changes: 1 addition & 1 deletion ftplugin/rust_racer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if !exists('g:racer_experimental_completer')
endif

if !exists('g:racer_insert_paren')
let g:racer_insert_paren = 1
let g:racer_insert_paren = 0
endif

nnoremap <silent><buffer> <Plug>(rust-def)
Expand Down

0 comments on commit a8771a8

Please sign in to comment.