aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorGokul Soumya2022-06-12 00:53:58 +0000
committerGitHub2022-06-12 00:53:58 +0000
commite9283b20b432d40782bcf78423ef770289f6a013 (patch)
tree3443af51a6e1430fefc37f0a1b4db5fa8e796c94 /helix-term/src
parent0b8a00ac967f4fd0608d83e2804bb6b1a8bf9c5d (diff)
Add docstring for language_server!() macro (#2750)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands/lsp.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs
index 93ae2353..b6bea8d6 100644
--- a/helix-term/src/commands/lsp.rs
+++ b/helix-term/src/commands/lsp.rs
@@ -16,6 +16,11 @@ use crate::{
use std::borrow::Cow;
+/// Gets the language server that is attached to a document, and
+/// if it's not active displays a status message. Using this macro
+/// in a context where the editor automatically queries the LSP
+/// (instead of when the user explicitly does so via a keybind like
+/// `gd`) will spam the "LSP inactive" status message confusingly.
#[macro_export]
macro_rules! language_server {
($editor:expr, $doc:expr) => {