No completion
prsh11 opened this issue · 7 comments
My init.vim
lua << EOF
local nvim_lsp = require('lspconfig')
local on_attach = function(_, bufnr)
require'completion'.on_attach()
end
local servers = {'pyright', 'clangd'}
for _, server in ipairs(servers) do
nvim_lsp[server].setup {
on_attach = on_attach,
}
end
EOF
" Use completion-nvim in every buffer
autocmd BufEnter * lua require'completion'.on_attach()
" 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
" Avoid showing message extra message when using completion
set shortmess+=c
imap <tab> <Plug>(completion_smart_tab)
imap <s-tab> <Plug>(completion_smart_s_tab)
How to reproduce
On pressing tab, don't get autocomplete.
Expected behavior
Autocomplete menu appears
The important thing is completion-nvim is broken currently.
It is not maintained well.
I recommend for you to use other auto completion plugins instead.
What version of neovim are you running? if you are unsure run nvim --version
The important thing is completion-nvim is broken currently. It is not maintained well. I recommend for you to use other auto completion plugins instead.
It is open source however, this therefore means other people could still contribute, there are other auto-completion plugins however some people may not wish to move, and furthermore may prefer this plugin.
As of right now I run v0.5.0, and have neovim ignored by pacman, it does mean I am stuck on an older version and I recommend anyone who does not wish to use another plugin to downgrade their neovim version until a patch has been merged, this is provided the solution outlined in #399 did not work for you.