Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.95k stars 295 forks source link

deoplete autocompletion not working #1193

Closed uziahmed closed 3 years ago

uziahmed commented 3 years ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

deoplete autocompletion is not working

Expected

Environment Information

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

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

Screenshot from 2021-10-17 16-09-02

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

syntax on

set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent 
set nu
set nowrap
set smartcase
set noswapfile
set incsearch
set mouse=a

call plug#begin()
Plug 'https://github.com/joshdick/onedark.vim.git'
Plug 'vim-airline/vim-airline'
if has('nvim')
  Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
  Plug 'Shougo/deoplete.nvim'
  Plug 'roxma/nvim-yarp'
  Plug 'roxma/vim-hug-neovim-rpc'
endif
let g:deoplete#enable_at_startup = 1
call plug#end()

colorscheme onedark
let g:airline_theme='onedark'
let g:airline_powerline_fonts = 1`

How to reproduce the problem from neovim/Vim startup (Required!)

i literally just did whats in the documentation i have read all of the documentation but still couldn't figure out what is wrong

Generate a logfile if appropriate

  1. export NVIM_PYTHON_LOG_FILE=/tmp/log
  2. export NVIM_PYTHON_LOG_LEVEL=DEBUG
  3. nvim -u minimal.vimrc
  4. some works
  5. cat /tmp/log_{PID}

Screenshot (if possible)

Screenshot from 2021-10-16 13-21-11

Upload the log file

Shougo commented 3 years ago

I think it works.

def main():
    print();
    pri|

Because, the default deoplete does not equals omni completion. It does not complete Python syntax words. It completes already input words.

If you need syntax completion, you need to install deplete-lsp and configure nvim-lspconfig instead.

https://github.com/deoplete-plugins/deoplete-lsp https://github.com/neovim/nvim-lspconfig