Open drusmanbashir opened 2 years ago
What language and LSP you using when you saw the issue?
Python and pyright
There might be something broken. I pushed a fix.
I updated. Now the behaviour is erratic. The first ever function call in a nvim session still auto-triggers. The next calls of various functions will randomly either trigger, not trigger, or will flash for a moment. Below is a screencast showing the first 2 call auto-trigger the signature. On the 3rd call, signature flashes for a moment and then disappears. Note i use nvim-cmp:
I tried pyright and it works fine for me.
Yes it works if i disable nvim-cmp plugin and go manual. Just need to find a way to make it work with nvim-cmp active
nop, I am using nvim-cmp myself, and did not see the issue you experienced. did you update the plugin to latest?
Yes. Latest plugin versions. Currently, I just get slightly unpredictable behaviour. it does not autoshow half of the time, other times signature pops up if i jump inside a function parentheses. Other times, it pops up for a second and disappears. Below is my neovim version.
:version
NVIM v0.8.0-dev-739-ge59bc078d
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-
prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-c
ommon -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/ub/programs/neovim/build/cmake.
config -I/home/ub/programs/neovim/src -I/home/ub/programs/neovim/.deps/usr/include -I/usr/include -I/home/ub/programs/neovim/build/src/nvim/auto -I/home/ub/programs/neovim/build/include
Compiled by root@zen
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"
Run :checkhealth for more info
Could you try this minimum vimrc https://github.com/ray-x/nvim/blob/master/min/init_pack.lua And check if the issue can be reproduce?
I'm having the same issue, is there a simple way to disable this plugin for python files?
It works fine for me. My lsp-signature.lua file is the much abbreviated:
cfg = {
debug = true,
verbose = true,
floating_window = false,
hint_enable = false,
handler_opts = {
border = "single",
},
bind = true, -- This is mandatory, otherwise border config won't get registered.
toggle_key = '<M-;>',
select_signature_key='<M-n>' ,
}
require "lsp_signature".setup(cfg) --ignore:type
See if this helps
这对我来说可以。我的lsp-signature.lua文件被简化了很多:
cfg = { debug = true, verbose = true, floating_window = false, hint_enable = false, handler_opts = { border = "single", }, bind = true, -- This is mandatory, otherwise border config won't get registered. toggle_key = '<M-;>', select_signature_key='<M-n>' , } require "lsp_signature".setup(cfg) --ignore:type
看这是否有帮助
Hello, may I ask you what is the M in the shortcut key '
Meta key, Can be <Alt>
or <Cmd>
depending on your keyboard.
Meta key, Can be
<Alt>
or<Cmd>
depending on your keyboard. Thanks so much
Hi, I want lsp_signature to only fire on demand, using a toggle key. This was working before one of the recent updates, but no longer works. Lsp_signature always triggers when i am inside a function parenthesis. The signature box hides text behind it and that becomes a problem for me, so i have to manually turn if off with the toggle key. Before, I could toggle it on and off whenever needed. Can you please check? My config is below:
Many thanks for the fantastic plugin