Skip to content

Configuration ​

Theme ​

LazyAPI uses the Catppuccin Mocha color palette. The 29 named colors are defined in internal/config/config.go.

Primary accent colors:

ColorHex
Rosewater#f5e0dc
Flamingo#f2cdcd
Pink#f5c2e7
Mauve#cba6f7
Red#f38ba8
Maroon#eba0ac
Peach#fab387
Yellow#f9e2af
Green#a6e3a1
Teal#94e2d5
Blue#89b4fa
Base#1e1e2e
Mantle#181825
Crust#11111b

Keymap ​

All keybindings are defined in internal/config/keymap.go and can be remapped in the source. The default bindings are:

ActionKeys
Move upk, ↑
Move downj, ↓
Move lefth, ←
Move rightl, →
SelectEnter, Space
BackEsc
Next fieldTab
Prev fieldShift+Tab
Savectrl+o
Save exampleCtrl+E
New requestCtrl+N
Duplicated
Deletex
Filter/
Quitq
KillCtrl+C

Interface texts ​

The texts of the TUI's tabs (tab names, list titles and hints, field labels and placeholders, empty states, the response view's messages) live in internal/config/messages.yml, embedded in the binary at build time.

  • Change the defaults: edit messages.yml and rebuild (go build ./cmd/lazyapi). go test ./internal/config fails when the code uses a key the file lacks.
  • Override at run time: point LAZYAPI_MESSAGES at a YAML file with the same layout and only the keys you change, e.g. a translation:
yaml
# pt-BR.yml
editor:
  tabs:
    auth: Autenticação
    headers: Cabeçalhos
  auth:
    empty: "Nenhuma autenticação. {add} adiciona um scheme."
bash
LAZYAPI_MESSAGES=pt-BR.yml lazyapi api.yml

{name} placeholders (such as {add}, the key that adds a row) are filled in by LazyAPI: keep them in your texts. An unknown key or invalid YAML is reported when the TUI starts, and the built-in texts are used.

Released under the GPLv3 License.

/ search•[ ] prev/next•j/k scroll•h home•t theme•configuration