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

No completion  #405

Open
Open

Description

@prsh11

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

Activity

  1. Shougo commented on Oct 6, 2021

    @Shougo

    Please read other issues. Your issue is already duplicated.

    #403
    #399

  2. prsh11 commented on Oct 6, 2021

    @prsh11
    Author

    Please read other issues. Your issue is already duplicated.

    #403 #399

    I have tried reading them. I couldn't reproduce from them. Can you tell me what I am doing wrong in my config?

  3. Shougo commented on Oct 6, 2021

    @Shougo

    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.

  4. Shougo commented on Oct 8, 2021

    @Shougo

    Yes. You are right. And the fix is already exists.
    #400

    But it is not merged yet... I don't know why.

  5. prsh11 commented on Oct 8, 2021

    @prsh11
    Author

    @notPrash

    What version of neovim are you running? if you are unsure run nvim --version

    I am using neovim nightly, for treesitter. That's why it's not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions