We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50e40b commit 2923666Copy full SHA for 2923666
lua/lsp_signature/init.lua
@@ -150,8 +150,12 @@ local function virtual_hint(hint, off_y)
150
or '🐼 '
151
152
if off_y and off_y ~= 0 then
153
- local inline = type(_LSP_SIG_CFG.hint_inline) == 'function' and _LSP_SIG_CFG.hint_inline() == 'inline'
154
- or _LSP_SIG_CFG.hint_inline
+ local inline
+ if type(_LSP_SIG_CFG.hint_inline) == 'function' then
155
+ inline = vim.tbl_contains({ 'inline', 'eol', 'right_align' }, _LSP_SIG_CFG.hint_inline())
156
+ else
157
+ inline = _LSP_SIG_CFG.hint_inline
158
+ end
159
-- stay out of the way of the pum
160
if completion_visible or inline then
161
show_at = cur_line
0 commit comments