feat: add config option lsp_output "quiet" to reduce LSP log verbosity

Set the option to "verbose" to re-enable logging of LSP show/logMessage requests.
This commit is contained in:
CJ van den Berg 2025-08-20 21:00:24 +02:00
parent 72423471f1
commit 69ea495495
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 18 additions and 4 deletions

View file

@ -122,6 +122,8 @@ fn init(allocator: Allocator) InitError!*Self {
const frame_time = std.time.us_per_s / conf.frame_rate;
const frame_clock = try tp.metronome.init(frame_time);
tp.env.get().set("lsp_verbose", conf.lsp_output == .verbose);
var self = try allocator.create(Self);
// don't destroy
// if tui fails it is catastrophic anyway and we don't want to cause nock-on errors