remove old docs from README.md

This commit is contained in:
prabirshrestha
2019-03-30 00:12:01 -07:00
parent 9d75c6872e
commit c64848b11e

View File

@@ -15,9 +15,9 @@ Plug 'prabirshrestha/asyncomplete.vim'
#### Tab completion
```vim
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
```
### Force refresh completion
@@ -52,37 +52,6 @@ inoremap <silent><expr> <TAB>
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
```
### Popup delay
By default asyncomplete will show the autocomplete popup menu after a 30ms
delay. Change this value to cause the popup to show more or less quickly between
keystrokes.
```vim
let g:asyncomplete_popup_delay = 30
```
### Remove duplicates
If you have many sources enabled (especially the buffer source), it might be
useful to remove duplicates from the completion list. You can enable this by
setting `g:asyncomplete_remove_duplicates` to 1.
```vim
let g:asyncomplete_remove_duplicates = 1
```
### Smart Completion
To enable fuzzy smart completion:
```vim
let g:asyncomplete_smart_completion = 1
let g:asyncomplete_auto_popup = 1
```
Refer to docs to checks if your vim or neovim supports smart completion.
Auto popup is required to support smart completion.
#### Preview Window
To disable preview window:
@@ -174,10 +143,6 @@ au User asyncomplete_setup call asyncomplete#register_source({
\ })
```
### Priority
Use `priority` to control the order of the source. Highest priority comes first. `priority` is optional and defaults to `0` when registering a source.
### Example
```vim