ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.01k stars 56 forks source link

the hint sometimes shows and sometimes not #236

Closed kulakilam closed 1 year ago

kulakilam commented 1 year ago

https://user-images.githubusercontent.com/4487126/203823724-0e490fb6-9e19-4ab8-a55d-36150fbafee0.mov

it seems that the hint can't show in the higher lines, but shows in the lower lines. I guess the hint is covered by the signature help

ray-x commented 1 year ago

it might be because the hint was blocked by floating windows.

kulakilam commented 1 year ago

it might be because the hint was blocked by floating windows.

this is my minimal init.vim which can reproduce this issue:

set expandtab
set shiftwidth=4
set tabstop=4

call plug#begin()
Plug 'neovim/nvim-lspconfig'

Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'

Plug 'ray-x/lsp_signature.nvim'
call plug#end()

lua << EOF

require('lspconfig').ccls.setup{}
require('cmp').setup{}
require('lsp_signature').setup()

EOF

additional information:

https://user-images.githubusercontent.com/4487126/203905513-4b72eecd-8943-4a76-9418-de92971c2dfd.mov