---
services:
  nvim:
    build:
      context: .
      args:
        GIT_USER_EMAIL: ${NVIM_GIT_USER_EMAIL:-nobody@example.com}
        GIT_USER_NAME: ${NVIM_GIT_USER_NAME:-noboby}
    image: 'joaodubas/nvim:${NVIM_TAG:-latest}'
    init: true
    restart: unless-stopped
    hostname: local
    entrypoint: sleep
    command: infinity
    environment:
      ANTHROPIC_API_KEY: ${NVIM_ANTHROPIC_API_KEY:-no-api}
      GH_TOKEN: ${NVIM_GH_TOKEN:-no-token}
    volumes:
      - './config/atuin:/home/coder/.config/atuin'
      - './config/git:/home/coder/.config/git'
      - './config/mise:/home/coder/.config/mise'
      - './config/nvim/lua/custom:/home/coder/.config/nvim/lua/custom'
      - './config/starship:/home/coder/.config/starship'
      - './config/tmux:/home/coder/.config/tmux'
      - './config/tmuxp:/home/coder/.config/tmuxp'
      - 'home_cache:/home/coder/.cache'
      - 'home_local_share:/home/coder/.local/share'
      - 'home_local_state:/home/coder/.local/state'
      - 'home_plugins_tmux:/home/coder/.config/tmux/plugins'

volumes:
  home_cache: {}
  home_local_share: {}
  home_local_state: {}
  home_plugins_tmux: {}