Starship prompt plugin for Yazi
https://github.com/Rolv-Apneseth/starship.yazi/assets/69486699/f7314687-5cb1-4d66-8d9d-cca960ba6716
ya pack -a Rolv-Apneseth/starship
# Linux / MacOS
git clone https://github.com/Rolv-Apneseth/starship.yazi.git ~/.config/yazi/plugins/starship.yazi
# Windows
git clone https://github.com/Rolv-Apneseth/starship.yazi.git %AppData%\yazi\config\plugins\starship.yazi
Add this to ~/.config/yazi/init.lua
:
require("starship"):setup()
If you wish to define a custom config file for starship
to use, you can pass in a path
to the setup function like this:
starship:setup({ config_file = "/home/rolv/.config/starship_secondary.toml" })
Make sure you have starship installed and in your PATH
.
If you use a starship
theme with a background colour, it might look a bit to cramped on just the one line Yazi
gives the header by default. To fix this, you can add this to your init.lua
:
[!NOTE] This works by overriding your
Tab.build
function so make sure this is the only place you're doing that in your config. For example, this would be incompatible with the full-border plugin