Skip to content

Commit

Permalink
Add docstring for language_server!() macro (helix-editor#2750)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudormrfbin authored Jun 12, 2022
1 parent 0b8a00a commit e9283b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit e9283b2

Please sign in to comment.