Skip to content

Fix handling false which is returned by hint_inline function#365

Merged
ray-x merged 1 commit intoray-x:masterfrom
Sheile:fix/disable-inline-hint
Jun 17, 2025
Merged

Fix handling false which is returned by hint_inline function#365
ray-x merged 1 commit intoray-x:masterfrom
Sheile:fix/disable-inline-hint

Conversation

@Sheile
Copy link
Contributor

@Sheile Sheile commented Jun 4, 2025

Overview

The lsp_signature displays hint in the same line also if specify function which will return false to disable inline hint.

Cause

_LSP_SIG_CFG.hint_inline is function and it is evaluated as truthy value.

Options

opts = {
  hint_inline = function() return false end,  -- default
  hint_prefix = {
    above = "",
    current = "",
    below = ""
  },
}

Expected behavior ( or patched version behavior)

image

Actual behavior

image

Copy link
Owner

@ray-x ray-x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I will update doc as well

@ray-x ray-x merged commit 2923666 into ray-x:master Jun 17, 2025
5 checks passed
@Sheile Sheile deleted the fix/disable-inline-hint branch June 17, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants