feat: add interactive and non-interactive commands to set the current buffer's tab_width

This commit is contained in:
CJ van den Berg 2025-08-11 14:29:23 +02:00
parent 1632061144
commit 3e0e75c9c8
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 39 additions and 0 deletions

View file

@ -744,6 +744,11 @@ const cmds = struct {
}
pub const force_terminate_meta: Meta = .{ .description = "Force quit without saving" };
pub fn tab_width(self: *Self, ctx: Ctx) Result {
return enter_mini_mode(self, @import("mode/mini/tab_width.zig"), ctx);
}
pub const tab_width_meta: Meta = .{ .description = "Set tab width" };
pub fn set_theme(self: *Self, ctx: Ctx) Result {
var name: []const u8 = undefined;
if (!try ctx.args.match(.{tp.extract(&name)}))