Skip to content

Commit

Permalink
fix: signature help window documentation rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 19, 2024
1 parent bc94c75 commit 264aea4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/blink/cmp/signature/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ function signature.open_with_signature_help(context, signature_help)
local active_signature = signature_help.signatures[(signature_help.activeSignature or 0) + 1]

if signature.shown_signature ~= active_signature then
require('blink.cmp.lib.window.docs').render_detail_and_documentation(
signature.win:get_buf(),
active_signature.label,
active_signature.documentation,
config.max_width,
config.treesitter_highlighting
)
require('blink.cmp.lib.window.docs').render_detail_and_documentation({
bufnr = signature.win:get_buf(),
detail = active_signature.label,
documentation = active_signature.documentation,
max_width = config.max_width,
use_treesitter_highlighting = config.treesitter_highlighting,
})
end
signature.shown_signature = active_signature

Expand Down

0 comments on commit 264aea4

Please sign in to comment.