add vim normal hover keybind and fix typo

This commit is contained in:
xdBronch 2024-10-11 15:38:34 -04:00 committed by CJ van den Berg
parent 8004b41eb4
commit 5182756f1d
6 changed files with 7 additions and 6 deletions

View file

@ -315,7 +315,7 @@ const cmds_ = struct {
pub fn q(self: *Self, _: Ctx) Result {
try self.cmd("quit", .{});
}
pub const q_meta = .{ .description = "w (quit)" };
pub const q_meta = .{ .description = "q (quit)" };
pub fn @"q!"(self: *Self, _: Ctx) Result {
try self.cmd("quit_without_saving", .{});

View file

@ -667,7 +667,7 @@ const cmds_ = struct {
pub fn q(self: *Self, _: Ctx) Result {
try self.cmd("quit", .{});
}
pub const q_meta = .{ .description = "w (quit)" };
pub const q_meta = .{ .description = "q (quit)" };
pub fn @"q!"(self: *Self, _: Ctx) Result {
try self.cmd("quit_without_saving", .{});

View file

@ -667,7 +667,7 @@ const cmds_ = struct {
pub fn q(self: *Self, _: Ctx) Result {
try self.cmd("quit", .{});
}
pub const q_meta = .{ .description = "w (quit)" };
pub const q_meta = .{ .description = "q (quit)" };
pub fn @"q!"(self: *Self, _: Ctx) Result {
try self.cmd("quit_without_saving", .{});

View file

@ -315,7 +315,7 @@ const cmds_ = struct {
pub fn q(self: *Self, _: Ctx) Result {
try self.cmd("quit", .{});
}
pub const q_meta = .{ .description = "w (quit)" };
pub const q_meta = .{ .description = "q (quit)" };
pub fn @"q!"(self: *Self, _: Ctx) Result {
try self.cmd("quit_without_saving", .{});

View file

@ -209,6 +209,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void {
},
'o' => self.seq(.{ "smart_insert_line_before", "enter_mode" }, command.fmt(.{"vim/insert"})),
'k' => self.cmd("hover", .{}),
else => {},
},
@ -631,7 +632,7 @@ const cmds_ = struct {
pub fn q(self: *Self, _: Ctx) Result {
try self.cmd("quit", .{});
}
pub const q_meta = .{ .description = "w (quit)" };
pub const q_meta = .{ .description = "q (quit)" };
pub fn @"q!"(self: *Self, _: Ctx) Result {
try self.cmd("quit_without_saving", .{});

View file

@ -580,7 +580,7 @@ const cmds_ = struct {
pub fn q(self: *Self, _: Ctx) Result {
try self.cmd("quit", .{});
}
pub const q_meta = .{ .description = "w (quit)" };
pub const q_meta = .{ .description = "q (quit)" };
pub fn @"q!"(self: *Self, _: Ctx) Result {
try self.cmd("quit_without_saving", .{});