Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

trouble shooting

haorenW1025 edited this page Sep 16, 2020 · 8 revisions

Trouble Shooting

  • This project is relatively new and some issues may occurred. Please follow the steps below if you have any problem.

  • First of all, use the command :checkhealth to see if your configuration is correct.

  • Consider update your neovim to the newest nightly release or recompile neovim from source. If your're using brew, try brew update neovim --fetch-head

Setting up with no package manager.

  • See issue for possible solution. Feel free to open up new issues if it doesn't work.

Check if the problem is in completion-nvim or it's lsp specific.

  • Issues in lsp is out of the scope in this plugins, you should go to nvim-lsp or neovim to look for help.

  • Check if the issues can be reproduce with completion-nvim is not set up. For example, don't use the on_attach function and comment out the line

Plug 'haorenW1025/completion-nvim'.

Test completion-nvim with a clean enviornment.

  • Some issue may be specific to certain config. It'll be better and more efficient for me to solve your issue if you know what causes the problem.

  • Have a file name test.vim and put this in your file (this file use vim-plug as an example, you should use your own plugin manager), remember to change your language server.

call plug#begin('~/.vim/plugged') 
    Plug 'neovim/nvim-lsp'
    Plug 'nvim-lua/completion-nvim'
call plug#end()
lua require'nvim_lsp'.sumneko_lua.setup{on_attach=require'completion'.on_attach}
au Filetype lua setl omnifunc=v:lua.vim.lsp.omnifunc
" Use <Tab> and <S-Tab> to navigate through popup menu
inoremap <expr> <Tab>   pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

" Set completeopt to have a better completion experience
set completeopt=menuone,noinsert,noselect
  • Use nvim -u test.vim {your_file} to open your file.

  • If the issue cannot be reproduced, you should add your own config to test.vim and see which config really make the difference.

  • Feel free to open an issue if anything is not able to solve! I'll do my best to solve the issue or see if I can help:)