Arrow now uses dr over e, also, switch to my fork which fixes the statusline
The statusline now takes a bufnr instead of using the current buffer, this way it works with multiple statuslines at the same time, like incline. Additionally, it doesnt dissapear when open floating windows.
This commit is contained in:
parent
3ba2c3f858
commit
11f9c6cbae
2 changed files with 22 additions and 8 deletions
|
|
@ -1,7 +1,25 @@
|
||||||
return {
|
return {
|
||||||
"otavioschwanck/arrow.nvim",
|
"LarssonMartin1998/arrow.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
show_icons = true,
|
show_icons = true,
|
||||||
leader_key = ","
|
leader_key = ",",
|
||||||
|
global_bookmarks = true,
|
||||||
|
custom_actions = {
|
||||||
|
open = function(filename, _)
|
||||||
|
vim.cmd(string.format(":drop %s", filename))
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
mappings = {
|
||||||
|
edit = "e",
|
||||||
|
delete_mode = "d",
|
||||||
|
clear_all_items = "C",
|
||||||
|
toggle = "s",
|
||||||
|
open_vertical = "v",
|
||||||
|
open_horizontal = "h",
|
||||||
|
quit = "q",
|
||||||
|
remove = "x",
|
||||||
|
next_item = "n",
|
||||||
|
prev_item = "p",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,17 +52,13 @@ return {
|
||||||
return label
|
return label
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: Make this fetch data from arrow using the file that the statusline is running on.
|
|
||||||
-- This will require a pull request to change how it handles the statusline.
|
|
||||||
-- Right now it just uses the current buffer.
|
|
||||||
-- It can still be the same UX but with the option of sending in a path to work on.
|
|
||||||
local function get_arrow_label()
|
local function get_arrow_label()
|
||||||
local statusline = require("arrow.statusline")
|
local statusline = require("arrow.statusline")
|
||||||
if statusline.is_on_arrow_file() == nil then
|
if statusline.is_on_arrow_file(props.buf) == nil then
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
||||||
return " " .. statusline.text_for_statusline_with_icons()
|
return " " .. statusline.text_for_statusline_with_icons(props.buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue