on master help sign in
Add docstring for language_server!() macro (#2750)
commite9283b20b432d40782bcf78423ef770289f6a013 authorGokul Soumya <gokulps15@gmail.com> dateSun 12 Jun 2022, 06:23 (4 years ago) parent0b8a00a
1 file changed+5
helix-term/src/commands/lsp.rs+5
helix-term/src/commands/lsp.rs+5
@@ -16,6 +16,11 @@ use crate::{
1616
1717use std::borrow::Cow;
1818
19+/// Gets the language server that is attached to a document, and
20+/// if it's not active displays a status message. Using this macro
21+/// in a context where the editor automatically queries the LSP
22+/// (instead of when the user explicitly does so via a keybind like
23+/// `gd`) will spam the "LSP inactive" status message confusingly.
1924#[macro_export]
2025macro_rules! language_server {
2126 ($editor:expr, $doc:expr) => {