From: Girish Palya Date: Tue, 30 Jan 2024 19:57:51 +0000 (+0100) Subject: Improve signature popup window X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5c6e69f71b6c20edcced6d870779a3effac9c08b;p=vim-lsp.git Improve signature popup window 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 --- diff --git a/autoload/lsp/signature.vim b/autoload/lsp/signature.vim index 0b229b9..59fbc08 100644 --- a/autoload/lsp/signature.vim +++ b/autoload/lsp/signature.vim @@ -109,7 +109,7 @@ export def SignatureHelp(lspserver: dict, 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