From 5c6e69f71b6c20edcced6d870779a3effac9c08b Mon Sep 17 00:00:00 2001
From: Girish Palya <girishji@gmail.com>
Date: Tue, 30 Jan 2024 20:57:51 +0100
Subject: [PATCH] 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
---
 autoload/lsp/signature.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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<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
-- 
2.50.0