Skip to content

Instantly share code, notes, and snippets.

View rhizoome's full-sized avatar
💭
Gluing elephants to the ceiling

Jean-Louis Fuchs rhizoome

💭
Gluing elephants to the ceiling
View GitHub Profile
@rhizoome
rhizoome / complete.vim
Last active June 28, 2019 09:12
Completion-as-you-time with timer: not simple anymore, I had to workaround many vim/neovim bugs (works with neovim v0.4)
" Set the complete-options that are best for auto-completion as you type:
" * menuone: show the (pop-up-)menu even when there is only one entry
" * preview: show the documentation for the current completion if available
" * noinsert: only insert a completion if the user presses enter
" * also do not set noselect/longest, since we want vim to select the first entry, so
" enter is sufficient to insert the completion
set completeopt=menuone,preview,noinsert
" Enable dictionary completions
set complete+=k