Health Check & Setup Verification
The :LovelaceHealth command is the fastest way to confirm the Neovim extension can talk to the Lattice daemon and that this client is paired/trusted.
Running the Health Check
vim
:LovelaceHealth
Expected Output
When everything is working, you'll see:
## Connection Status
✓ Connected to Lattice daemon
Socket: ~/.lovelace/lattice/daemon.sock
## Ping
✓ pong
## Pairing / Trust
✓ Device is set up
If the device is not paired yet:
## Pairing / Trust
✗ Device not set up
To pair this Neovim client:
:LovelaceAuth
Common Scenarios
Daemon Not Running
Start the daemon:
bash
lattice-ctl daemon start
lattice-ctl daemon status
Then re-run:
vim
:LovelaceHealth
Socket Path Issues
The plugin discovers the socket path in this order:
daemon.socket_path(plugin config)LATTICE_SOCKETLATTICE_SOCKET_PATHLOVELACE_SOCKET_PATH(compat with other tooling)~/.lovelace/lattice/daemon.sock/tmp/lovelace-daemon.sock
To override:
lua
require("lovelace").setup({
daemon = {
socket_path = "/custom/path/to/daemon.sock"
}
})
Socket Permissions
If you see permission errors:
bash
ls -la ~/.lovelace/lattice/daemon.sock
Enable Debug Logging
lua
require("lovelace").setup({
log_level = "debug"
})
Then check:
vim
:messages
Auto-Start Configuration
By default, the extension will attempt to start the daemon if it cannot find a socket:
- Command:
lattice-ctl daemon start - Follow-up: it retries connection and verifies readiness via
ping
To disable auto-start:
lua
require("lovelace").setup({
daemon = {
auto_start = false
}
})
Troubleshooting Workflow
-
Run:
vim:LovelaceHealth -
If disconnected:
bashlattice-ctl daemon start lattice-ctl daemon status -
Re-run:
vim:LovelaceHealth -
If not set up:
vim:LovelaceAuth
Next Steps
- Pairing & Trust - Pair this Neovim client
- Task Submission - Submit your first task
- Troubleshooting - Common issues and solutions
- Command Reference - Full
:LovelaceHealthdocumentation