feat: make gutter line numbers configurable for all vim modes
This commit is contained in:
parent
8f360c8f28
commit
0c08f0b6fd
4 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,9 @@ modstate_show: bool = false,
|
||||||
keystate_show: bool = false,
|
keystate_show: bool = false,
|
||||||
gutter_line_numbers: bool = true,
|
gutter_line_numbers: bool = true,
|
||||||
gutter_line_numbers_relative: bool = false,
|
gutter_line_numbers_relative: bool = false,
|
||||||
|
vim_normal_gutter_line_numbers_relative: bool = true,
|
||||||
|
vim_visual_gutter_line_numbers_relative: bool = true,
|
||||||
|
vim_insert_gutter_line_numbers_relative: bool = false,
|
||||||
enable_terminal_cursor: bool = false,
|
enable_terminal_cursor: bool = false,
|
||||||
highlight_current_line: bool = true,
|
highlight_current_line: bool = true,
|
||||||
highlight_current_line_gutter: bool = true,
|
highlight_current_line_gutter: bool = true,
|
||||||
|
|
|
@ -31,6 +31,7 @@ pub fn create(a: Allocator) !tui.Mode {
|
||||||
.handler = EventHandler.to_owned(self),
|
.handler = EventHandler.to_owned(self),
|
||||||
.name = root.application_logo ++ "INSERT",
|
.name = root.application_logo ++ "INSERT",
|
||||||
.description = "vim",
|
.description = "vim",
|
||||||
|
.line_numbers = if (tui.current().config.vim_insert_gutter_line_numbers_relative) .relative else .absolute,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ pub fn create(a: Allocator) !tui.Mode {
|
||||||
.handler = EventHandler.to_owned(self),
|
.handler = EventHandler.to_owned(self),
|
||||||
.name = root.application_logo ++ "NORMAL",
|
.name = root.application_logo ++ "NORMAL",
|
||||||
.description = "vim",
|
.description = "vim",
|
||||||
.line_numbers = .relative,
|
.line_numbers = if (tui.current().config.vim_normal_gutter_line_numbers_relative) .relative else .absolute,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ pub fn create(a: Allocator) !tui.Mode {
|
||||||
.handler = EventHandler.to_owned(self),
|
.handler = EventHandler.to_owned(self),
|
||||||
.name = root.application_logo ++ "VISUAL",
|
.name = root.application_logo ++ "VISUAL",
|
||||||
.description = "vim",
|
.description = "vim",
|
||||||
|
.line_numbers = if (tui.current().config.vim_visual_gutter_line_numbers_relative) .relative else .absolute,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue