Skip to content

Commit 58f52e3

Browse files
committed
fix: disable all signature help when signature is disabled. Fixes #104
1 parent 36f1a56 commit 58f52e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lua/noice/lsp/init.lua

+3-4
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,16 @@ function M.setup()
4646
M.signature = Util.protect(M.signature)
4747
if Config.options.lsp.signature.enabled then
4848
vim.lsp.handlers["textDocument/signatureHelp"] = M.signature
49+
if Config.options.lsp.signature.auto_open.enabled then
50+
require("noice.lsp.signature").setup(group)
51+
end
4952
end
5053

5154
M.message = Util.protect(M.message)
5255
if Config.options.lsp.message.enabled then
5356
vim.lsp.handlers["window/showMessage"] = M.message
5457
end
5558

56-
if Config.options.lsp.signature.auto_open.enabled then
57-
require("noice.lsp.signature").setup(group)
58-
end
59-
6059
if Config.options.lsp.progress.enabled then
6160
require("noice.lsp.progress").setup()
6261
end

0 commit comments

Comments
 (0)