otavioschwanck / arrow.nvim

Bookmark your files, separated by project, and quickly navigate through them.
Other
454 stars 19 forks source link

add options to control arrow window appearance #13

Closed hosaka closed 6 months ago

hosaka commented 7 months ago

I wanted to change the border to "single" in my config, so ended up adding options that get passed to vim.api.nvim_open_win(). I also took the liberty to increase the window width by 2: since the addition of separate_save_and_remove the handbook text was slightly cut off.

Aside from default options, one could also pass others, such as an anchor for a new window, for example:

window = {
  anchor = "NW",
  row = 1,
  col = 1,
}

While "NW" works with hardcoded row and col, other positions will require changin the "auto" row/col calcualtion, a potential future improvement.

otavioschwanck commented 6 months ago

i will review later today, thanks for the PR