Skip to content
This repository was archived by the owner on Jul 27, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,19 @@ inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
```

- Show and auto-close docstrings for Python completion (See [here](https://stackoverflow.com/q/3105307/2958070) for more information)

```vim
" Add preview to see docstrings in the complete window.
let g:cm_completeopt = 'menu,menuone,noinsert,noselect,preview'

" Close the preview window automatically on InsertLeave
" https://github.com/davidhalter/jedi-vim/blob/eba90e615d73020365d43495fca349e5a2d4f995/ftplugin/python/jedi.vim#L44
augroup ncm_preview
autocmd! InsertLeave <buffer> if pumvisible() == 0|pclose|endif
augroup END
```

- If 'omnifunc' is the only available option, you may register it as a source
for NCM.

Expand Down