Skip to content

Commit

Permalink
Improve signature popup window
Browse files Browse the repository at this point in the history
Add 1 character padding to the sides of signature popup window.
Otherise, the leftmost character of popup looks like continuation of
line from underneath text in some colorschemes. A subtle improvemnt.

M  autoload/lsp/signature.vim
  • Loading branch information
girishji committed Jan 30, 2024
1 parent 786f079 commit 5c6e69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsp/signature.vim
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export def SignatureHelp(lspserver: dict<any>, sighelp: any): void
# Close the previous signature popup and open a new one
lspserver.signaturePopup->popup_close()

var popupID = text->popup_atcursor({moved: [col('.') - 1, 9999999]})
var popupID = text->popup_atcursor({padding: [0, 1, 0, 1], moved: [col('.') - 1, 9999999]})
var bnr: number = popupID->winbufnr()
prop_type_add('signature', {bufnr: bnr, highlight: 'LspSigActiveParameter'})
if hllen > 0
Expand Down

0 comments on commit 5c6e69f

Please sign in to comment.