---
title: "setting up nvim-manager starship prompt"
description: "I built out a tool for myself to manage my nvim configuration, and I wanted to quickly see which one I am running in my starship prompt. Here's the config I..."
date: 2025-01-21
published: true
tags:
  - neovim
  - nvim-manager
  - starship
template: til
---


I built out a tool for myself to manage my nvim configuration, and I wanted to
quickly see which one I am running in my starship prompt. Here's the config I
ended up with.  It warns if the `NVIM_APPNAME` environment variable is not set, and
it shows which nvim I am using if it is set.

``` toml
[custom.nvim-manager-system]
when = '[[ ! -n "${NVIM_APPNAME}" ]]'
style = "bold yellow"
symbol = '[ ](fg:#15AABF)'
format = '$symbol[USING SYSTEM NVIM]($style)'

[env_var.NVIM_APPNAME]
style = "green"
symbol = '[ ](fg:#15AABF)'
format = '[$symbol${env_value}]($style)'
variable = "NVIM_APPNAME"
```
