summaryrefslogtreecommitdiff
path: root/src/lsp/lsp.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/lsp/lsp.zig')
-rw-r--r--src/lsp/lsp.zig9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lsp/lsp.zig b/src/lsp/lsp.zig
index 536047a3..610c5604 100644
--- a/src/lsp/lsp.zig
+++ b/src/lsp/lsp.zig
@@ -17,6 +17,7 @@
//! implementations are measured against each other: same core, same harness,
//! same rows, different `query`.
const std = @import("std");
+const config = @import("../config.zig");
/// What the caller wants to know. The helix command each one backs is named
/// alongside, because the keymap is helix's and these are its verbs.
@@ -75,11 +76,11 @@ pub const Kind = enum {
/// content is not a list of locations — n/N over prose is nonsense.
pub fn bufferName(k: Kind) []const u8 {
return switch (k) {
- .hover => "+Hover",
- .code_action, .format, .rename => "+Lsp",
+ .hover => config.hover_buffer,
+ .code_action, .format, .rename => config.lsp_buffer,
// prose about the backend, never a list of locations
- .status, .explain => "+Lsp",
- else => "+Search",
+ .status, .explain => config.lsp_buffer,
+ else => config.search_buffer,
};
}
};