liuchengxu / space-vim

:four_leaf_clover: Lean & mean spacemacs-ish Vim distribution
https://liuchengxu.github.io/space-vim/
MIT License
2.85k stars 255 forks source link

deoplete auto_complete_delay is deprecated #456

Closed TheEdgeOfRage closed 4 years ago

TheEdgeOfRage commented 4 years ago

Environment

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

Put the contents of :version below:

:version
NVIM v0.5.0-426-g30a6e374d
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fs
tack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/pavle/.cache/yay/neovim-git/src/neovim-git/build/confi
g -I/home/pavle/.cache/yay/neovim-git/src/neovim-git/src -I/usr/include -I/home/pavle/.cache/yay/neovim-git/src/neovim-git/build/src/nvim/auto -I/home/pavle/.cache/yay/neovim-git/src/neovim-git/build/include
Compiled by pavle@neon

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Put the contents of :SpaceInfo below:

    Global Variables:
    let g:spacevim = {
        base = '/home/pavle/.space-vim',
        excluded = ['kshenoy/vim-signature', 'google/vim-searchindex', 'mhinz/vim-startify', 'luochen1990/rainbow', 'eagletmt/neco-ghc', 'sebastianmarkow/deoplete-rust', 'zchee/deoplete-go'],
        gui = 0,
        info = '/home/pavle/.space-vim/core/autoload/spacevim/info.vim',
        layers_base = '/layers',
        loaded = ['spacevim', 'better-defaults', 'unite', 'airline', 'programming', 'editing', 'fzf', 'git', 'syntax-checking', 'deoplete', 'c-c++', 'docker', 'html', 'javascript', 'markdown'],
        manifest = {'wasm': {'dir': '/home/pavle/.space-vim/layers/+lang/wasm'}, 'spacevim': {'dir': '/home/pavle/.space-vim/layers/+distributions/spacevim'}, 'ctrlp': {'dir': '/home/pavle/.space-vim/layers/+vim/ctrlp'}, 'go': {'dir': '/ho
me/pavle/.space-vim/layers/+lang/go'}, 'code-snippets': {'dir': '/home/pavle/.space-vim/layers/+programming/code-snippets'}, 'graphviz': {'dir': '/home/pavle/.space-vim/layers/+lang/graphviz'}, 'solidity': {'dir': '/home/pavle/.space-vim/l
ayers/+lang/solidity'}, 'git': {'dir': '/home/pavle/.space-vim/layers/+version-control/git'}, 'github': {'dir': '/home/pavle/.space-vim/layers/+version-control/github'}, 'clojure': {'dir': '/home/pavle/.space-vim/layers/+lang/clojure'}, 'g
ames': {'dir': '/home/pavle/.space-vim/layers/+fun/games'}, 'java': {'dir': '/home/pavle/.space-vim/layers/+lang/java'}, 'javascript': {'dir': '/home/pavle/.space-vim/layers/+lang/javascript'}, 'scala': {'dir': '/home/pavle/.space-vim/laye
rs/+lang/scala'}, 'auto-completion': {'dir': '/home/pavle/.space-vim/layers/+completion/auto-completion'}, 'ruby': {'dir': '/home/pavle/.space-vim/layers/+lang/ruby'}, 'emoji': {'dir': '/home/pavle/.space-vim/layers/+fun/emoji'}, 'file-man
ager': {'dir': '/home/pavle/.space-vim/layers/+tools/file-manager'}, 'typescript': {'dir': '/home/pavle/.space-vim/layers/+lang/typescript'}, 'lsp': {'dir': '/home/pavle/.space-vim/layers/+tools/lsp'}, 'docker': {'dir': '/home/pavle/.space
-vim/layers/+tools/docker'}, 'deoplete': {'dir': '/home/pavle/.space-vim/layers/+completion/deoplete'}, 'programming': {'dir': '/home/pavle/.space-vim/layers/+programming/programming'}, 'chinese': {'dir': '/home/pavle/.space-vim/layers/+mi
sc/chinese'}, 'which-key': {'dir': '/home/pavle/.space-vim/layers/+vim/which-key'}, 'syntax-checking': {'dir': '/home/pavle/.space-vim/layers/+checkers/syntax-checking'}, 'ycmd': {'dir': '/home/pavle/.space-vim/layers/+tools/ycmd'}, 'forma
tting': {'dir': '/home/pavle/.space-vim/layers/+programming/formatting'}, 'html': {'dir': '/home/pavle/.space-vim/layers/+lang/html'}, 'better-defaults': {'dir': '/home/pavle/.space-vim/layers/+distributions/better-defaults'}, 'text-align'
: {'dir': '/home/pavle/.space-vim/layers/+vim/text-align'}, 'vue': {'dir': '/home/pavle/.space-vim/layers/+lang/vue'}, 'goyo': {'dir': '/home/pavle/.space-vim/layers/+fun/goyo'}, 'better-motion': {'dir': '/home/pavle/.space-vim/layers/+vim
/better-motion'}, 'python': {'dir': '/home/pavle/.space-vim/layers/+lang/python'}, 'cscope': {'dir': '/home/pavle/.space-vim/layers/+tools/cscope'}, 'airline': {'dir': '/home/pavle/.space-vim/layers/+themes/airline'}, 'ctags': {'dir': '/ho
me/pavle/.space-vim/layers/+tools/ctags'}, 'c-c++': {'dir': '/home/pavle/.space-vim/layers/+lang/c-c++'}, 'unite': {'dir': '/home/pavle/.space-vim/layers/+completion/unite'}, 'editing': {'dir': '/home/pavle/.space-vim/layers/+programming/e
diting'}, 'latex': {'dir': '/home/pavle/.space-vim/layers/+lang/latex'}, 'markdown': {'dir': '/home/pavle/.space-vim/layers/+lang/markdown'}, 'lightline': {'dir': '/home/pavle/.space-vim/layers/+themes/lightline'}, 'erlang': {'dir': '/home
/pavle/.space-vim/layers/+lang/erlang'}, 'elm': {'dir': '/home/pavle/.space-vim/layers/+lang/elm'}, 'rust': {'dir': '/home/pavle/.space-vim/layers/+lang/rust'}, 'haskell': {'dir': '/home/pavle/.space-vim/layers/+lang/haskell'}, 'elixir': {
'dir': '/home/pavle/.space-vim/layers/+lang/elixir'}, 'tmux': {'dir': '/home/pavle/.space-vim/layers/+tools/tmux'}, 'fzf': {'dir': '/home/pavle/.space-vim/layers/+tools/fzf'}},
        nvim = 1,
        os = {'linux': 1, 'windows': 0, 'mac': 0},
        plugins = ['liuchengxu/space-vim-dark', 'liuchengxu/space-vim-theme', 'liuchengxu/vim-better-default', 'kshenoy/vim-signature', 'tpope/vim-rsi', 'xtal8/traces.vim', 'dominikduda/vim_current_word', 't9md/vim-choosewin', 'mhinz/vim-s
tartify', 'ntpeters/vim-better-whitespace', 'haya14busa/is.vim', 'osyo-manga/vim-anzu', 'Shougo/unite.vim', 'vim-airline/vim-airline-themes', 'vim-airline/vim-airline', 'luochen1990/rainbow', 'sheerun/vim-polyglot', 'airblade/vim-rooter',
'editorconfig/editorconfig-vim', 'matze/vim-move', 'junegunn/rainbow_parentheses.vim', 'majutsushi/tagbar', 'liuchengxu/vista.vim', 'Yggdroot/indentLine', 'nathanaelkane/vim-indent-guides', 'skywind3000/asyncrun.vim', 'tpope/vim-surround',
 'pelodelfuego/vim-swoop', 'terryma/vim-multiple-cursors', 'scrooloose/nerdcommenter', 'jiangmiao/auto-pairs', 'junegunn/fzf', 'junegunn/fzf.vim', 'junegunn/gv.vim', 'tpope/vim-fugitive', 'mhinz/vim-signify', 'w0rp/ale', 'Shougo/deoplete.n
vim', 'eagletmt/neco-ghc', 'Shougo/neco-vim', 'sebastianmarkow/deoplete-rust', 'zchee/deoplete-go', 'rhysd/vim-clang-format', 'octol/vim-cpp-enhanced-highlight', 'ekalinin/Dockerfile.vim', 'othree/html5.vim', 'hail2u/vim-css3-syntax', 'mat
tn/emmet-vim', 'pangloss/vim-javascript', 'neoclide/vim-jsx-improve', 'plasticboy/vim-markdown', 'mzlogin/vim-markdown-toc', 'previm/previm'],
        private_base = '/private',
        speed_up_via_timer = 1,
        timer = 1,
        tmux = 0,
        topics = {'+themes': ['airline', 'lightline'], '+tools': ['ycmd', 'ctags', 'cscope', 'file-manager', 'fzf', 'lsp', 'tmux', 'docker'], '+programming': ['formatting', 'programming', 'editing', 'code-snippets'], '+misc': ['chinese'],
'+completion': ['unite', 'auto-completion', 'deoplete'], '+distributions': ['better-defaults', 'spacevim'], '+version-control': ['git', 'github'], '+fun': ['emoji', 'games', 'goyo'], '+lang': ['graphviz', 'python', 'latex', 'typescript', '
clojure', 'elixir', 'java', 'go', 'javascript', 'c-c++', 'rust', 'html', 'wasm', 'haskell', 'erlang', 'ruby', 'vue', 'solidity', 'elm', 'scala', 'markdown'], '+checkers': ['syntax-checking'], '+vim': ['better-motion', 'text-align', 'which-
key', 'ctrlp']},
        version = '0.9.0',
        vim8 = 0,
    }

Problem Description

The deoplete global variable g:deoplete#auto_complete_delay is deprecated and a warning gets shown every time nvim starts. It gets annoying very quickly.

Here's the exact message:

[deoplete] g:deoplete#auto_complete_delay is deprecated variable.  Please use deoplete#custom#option() instead.

It suggests to use the deoplete custom option function.