- Run single Rust test:
cargo test test_namein terminal or:terminal cargo test test_name - Run all tests:
:CargoTestor<leader>dt(maps tocargo test) - Build project:
:CargoRun| Check code::CargoCheck| Lint::CargoClippy
- Format code:
<leader>f(LSP formatting) or:FormatWrite(nix files auto-format on save) - Check diagnostics:
<leader>tt(Trouble toggle) | Toggle completion:<leader>tc
- Update plugins:
:Lazy update| Sync plugins::Lazy sync
- Indentation: 4 spaces | Line length: 100 chars | Comments:
--descriptive - Error handling: Use
pcall()for optional dependencies | Imports:require()consistently - Keybindings: Always include
descfield, leader key is Space (<Space>)
- Structure: Group related functionality in logical modules (after/plugin/*.lua)
- LSP: Standard keybindings (gd, gr, gi, K), automatic formatting on save enabled
- Tab behavior: Tab inserts literal tabs (completion intentionally disabled)
- OpenCode AI assistant integrated with
<leader>o*keybindings (@cursor, @selection, @buffer contexts) - Multiple themes available, configured for light backgrounds
- Auto-reload enabled for opencode-edited buffers