Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/lsp.rs')
| -rw-r--r-- | helix-term/src/ui/lsp.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-term/src/ui/lsp.rs b/helix-term/src/ui/lsp.rs index b82f7be2..d845be4a 100644 --- a/helix-term/src/ui/lsp.rs +++ b/helix-term/src/ui/lsp.rs @@ -27,6 +27,7 @@ pub struct SignatureHelp { language: String, config_loader: Arc<ArcSwap<syntax::Loader>>, active_signature: usize, + lsp_signature: Option<usize>, signatures: Vec<Signature>, } @@ -37,12 +38,14 @@ impl SignatureHelp { language: String, config_loader: Arc<ArcSwap<syntax::Loader>>, active_signature: usize, + lsp_signature: Option<usize>, signatures: Vec<Signature>, ) -> Self { Self { language, config_loader, active_signature, + lsp_signature, signatures, } } @@ -51,6 +54,10 @@ impl SignatureHelp { self.active_signature } + pub fn lsp_signature(&self) -> Option<usize> { + self.lsp_signature + } + pub fn visible_popup(compositor: &mut Compositor) -> Option<&mut Popup<Self>> { compositor.find_id::<Popup<Self>>(Self::ID) } |