utilyre / barbecue.nvim

Visual Studio Code inspired breadcrumbs plugin for the Neovim editor
MIT License
776 stars 31 forks source link

[FEAT]: Add vim-suda support #118

Open GNUqb114514 opened 4 weeks ago

GNUqb114514 commented 4 weeks ago

Requirements

Problem

Currently, when opening a file by :SudaRead provided by vim-suda, the barbecue bar was hidden like this: image

Solution Suggestion

The path of vim-suda is pretty simple:

       Real path of the file
       vvvvvvvvvvvvvvvv
suda:///etc/pacman.conf
^^^^^^^
Fixed prefix

So we can just detect this prefix and pass the real path to the next step.

Workaround

No response