echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.74k stars 178 forks source link

Maintain relative directory in plugins which open buffers #1044

Open ldelossa opened 1 month ago

ldelossa commented 1 month ago

Contributing guidelines

Module(s)

mini.start, mini.pick, (maybe others...)

Description

As described here: https://github.com/echasnovski/mini.nvim/discussions/1038#discussioncomment-10011047

Various mini.nvim plugins do not maintain relative directories when opening buffers. This results in vim's buffer command having fully qualified paths (or close to that) and not relative paths when showing open buffers.

mini.nvim should preserve relative paths when opening buffers by opening them relative and not fully qualified.

echasnovski commented 1 month ago

Thanks for the suggestion!

I'll take a look.