feat: configure interchangeable top and bottom bars
This commit is contained in:
+8
-7
@@ -7,7 +7,14 @@ Vamp.configure do |config|
|
||||
config.file_explorer_side = "right"
|
||||
config.file_explorer_view = "tree"
|
||||
config.file_picker_view = "tree"
|
||||
config.tabline = {
|
||||
# Status above, tabs below; either bar accepts all segments and style options.
|
||||
config.bar.top = {
|
||||
left: [:mode, :path, :language, :diagnostics, :selections, :count, :pending, :buffer],
|
||||
center: [], right: [:position],
|
||||
mode: { padding: 1, leading_edge: "", trailing_edge: "▓▒░" },
|
||||
position: { padding: 1, leading_edge: "░▒▓", trailing_edge: "" }
|
||||
}
|
||||
config.bar.bottom = {
|
||||
left: [:tabs], center: [], right: [:battery],
|
||||
tabs: {
|
||||
title: "{index} {name}{modified}", padding: 1,
|
||||
@@ -15,12 +22,6 @@ Vamp.configure do |config|
|
||||
},
|
||||
battery: { padding: 1, leading_edge: "░▒▓", trailing_edge: "" }
|
||||
}
|
||||
config.statusline = {
|
||||
left: [:mode, :path, :language, :diagnostics, :selections, :count, :pending, :buffer],
|
||||
center: [], right: [:position],
|
||||
mode: { padding: 1, leading_edge: "", trailing_edge: "▓▒░" },
|
||||
position: { padding: 1, leading_edge: "░▒▓", trailing_edge: "" }
|
||||
}
|
||||
config.labels = { battery: "bat 38%" } # Static example; plugins update via editor.label(name, text)
|
||||
config.bind "ctrl+j", config.core.down, mode: config.modes.selection
|
||||
config.bind "ctrl+k", config.core.up, mode: config.modes.selection
|
||||
|
||||
Reference in New Issue
Block a user