Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ Check the [wiki](https://github.com/folke/noice.nvim/wiki/Configuration-Recipes)
},
signature = {
enabled = true,
silent = false, -- set to true to not show a message if signature is not available
auto_open = {
enabled = true,
trigger = true, -- Automatically show signature help when typing a trigger character from the LSP
Expand Down
1 change: 1 addition & 0 deletions lua/noice/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function M.defaults()
},
signature = {
enabled = true,
silent = false, -- set to true to not show a message if signature is not available
auto_open = {
enabled = true,
trigger = true, -- Automatically show signature help when typing a trigger character from the LSP
Expand Down
4 changes: 2 additions & 2 deletions lua/noice/lsp/signature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ end
function M.on_signature(_, result, ctx, config)
config = config or {}
if not (result and result.signatures) then
if not config.trigger then
if not config.trigger and not Config.options.lsp.signature.silent then
vim.notify("No signature help available")
end
return
Expand All @@ -98,7 +98,7 @@ function M.on_signature(_, result, ctx, config)
result.message = message
M.new(result):format()
if message:is_empty() then
if not config.trigger then
if not config.trigger and not Config.options.lsp.signature.silent then
vim.notify("No signature help available")
end
return
Expand Down