mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-07 19:01:35 +00:00
ui/breadcrumbs: add missing navbuddy mappings
This commit is contained in:
parent
98d9f0e622
commit
140cfea205
2 changed files with 23 additions and 0 deletions
|
@ -215,6 +215,24 @@ in {
|
||||||
description = "move focused node up";
|
description = "move focused node up";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
togglePreview = mkOption {
|
||||||
|
type = str;
|
||||||
|
default = "s";
|
||||||
|
description = "show preview of current node";
|
||||||
|
};
|
||||||
|
|
||||||
|
vsplit = mkOption {
|
||||||
|
type = str;
|
||||||
|
default = "<C-v>";
|
||||||
|
description = "open selected node in a vertical split";
|
||||||
|
};
|
||||||
|
|
||||||
|
hsplit = mkOption {
|
||||||
|
type = str;
|
||||||
|
default = "<C-s>";
|
||||||
|
description = "open selected node in a horizontal split";
|
||||||
|
};
|
||||||
|
|
||||||
telescope = mkOption {
|
telescope = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
default = "t";
|
default = "t";
|
||||||
|
|
|
@ -64,6 +64,11 @@ in {
|
||||||
${cfg.navbuddy.mappings.moveDown} = mkLuaInline "actions.move_down()";
|
${cfg.navbuddy.mappings.moveDown} = mkLuaInline "actions.move_down()";
|
||||||
${cfg.navbuddy.mappings.moveUp} = mkLuaInline "actions.move_up()";
|
${cfg.navbuddy.mappings.moveUp} = mkLuaInline "actions.move_up()";
|
||||||
|
|
||||||
|
${cfg.navbuddy.mappings.togglePreview} = mkLuaInline "actions.toggle_preview()";
|
||||||
|
|
||||||
|
${cfg.navbuddy.mappings.vsplit} = mkLuaInline "actions.vsplit()";
|
||||||
|
${cfg.navbuddy.mappings.hsplit} = mkLuaInline "actions.hsplit()";
|
||||||
|
|
||||||
${cfg.navbuddy.mappings.telescope} = mkLuaInline ''
|
${cfg.navbuddy.mappings.telescope} = mkLuaInline ''
|
||||||
actions.telescope({
|
actions.telescope({
|
||||||
layout_strategy = "horizontal",
|
layout_strategy = "horizontal",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue