feat: add interactive and non-interactive commands to set the current buffer's tab_width
This commit is contained in:
parent
1632061144
commit
3e0e75c9c8
3 changed files with 39 additions and 0 deletions
|
|
@ -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)}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue