nvim-lua / completion-nvim

A async completion framework aims to provide completion to neovim's built in LSP written in Lua
Apache License 2.0
973 stars 78 forks source link

Cursor jumps into floating window of function signature help #376

Closed loshjawrence closed 3 years ago

loshjawrence commented 3 years ago

My testing minimal init.vim

call plug#begin('~/.vim/bundle')
    Plug 'neovim/nvim-lspconfig'
    Plug 'nvim-lua/completion-nvim'
call plug#end()
inoremap <expr> <Tab>   pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
lua require'lspconfig'.tsserver.setup{on_attach=require'completion'.on_attach}
au Filetype javascript setl omnifunc=v:lua.vim.lsp.omnifunc
set completeopt=menuone,noinsert,noselect

How to reproduce

  1. Get the function signature help to pop up by typing some params in a function call site.
  2. Sometimes cursor will window jump into the floating window. for me its >50% of the time so it makes function signature help unusable.
  3. Can try to brute force trigger by holding , or holding delete on a long string of , image

Expected behavior The cursor should not jump into the floating window of the function signature help.

loshjawrence commented 3 years ago

Closing as this seems to be a neovim issue.

mjlbach commented 3 years ago

This is not a neovim issue, but a completion.nvim issue

jarimayenburg commented 3 years ago

I'm having the same issue Peek 2021-06-21 17-43