Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behaviour with vim-lsp+clangd+asyncomplete-lsp #290

Open
blegouix opened this issue Apr 30, 2023 · 1 comment
Open

Strange behaviour with vim-lsp+clangd+asyncomplete-lsp #290

blegouix opened this issue Apr 30, 2023 · 1 comment
Labels

Comments

@blegouix
Copy link

Hello,

Here is my .vimrc:


call plug#begin()
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'piec/vim-lsp-clangd'
call plug#end()

:set tabstop=4 smarttab
:set shiftwidth=2
:set autoindent
:set smartindent

let g:lsp_document_highlight_enabled = 1

inoremap <expr> <Tab>   pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<C-n>"
inoremap <expr> <cr>    pumvisible() ? asyncomplete#close_popup() : "\<cr>"

Very simple but when I want to use autocompletion, I don't get the expected behavior.

Lets say:

  • I start to write temp,
  • The keyword template is proposed in the popup (clangd is well recognized here, I get C++ completion not general one like on fresh Vim install),
  • But if I do Tab+Enter I get something like: temptemplate

So the few characters I wrote before using autocompletion remains.

Do I miss something ?

(https://vi.stackexchange.com/questions/42011/strange-behaviour-with-vim-lspclangdasyncomplete-lsp)

@stale
Copy link

stale bot commented Sep 17, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant