Lsp
Start the Language Server Protocol server for Cooklang editor integration.
Usage
The server communicates over stdin/stdout. You typically don't run this directly — your editor starts it automatically.
Features
- Real-time syntax checking and validation
- Auto-completion for ingredients, cookware, and timers
- Semantic syntax highlighting
- Hover documentation
- Document symbols and navigation
- Go to definition for recipe references
Editor Integration
Visual Studio Code
Install the Cooklang extension. It uses cook lsp automatically.
Manual configuration in settings.json:
Neovim
Using nvim-lspconfig:
Vim with CoC
Add to coc-settings.json:
Emacs
Using lsp-mode:
Using eglot:
Helix
Add to languages.toml:
Sublime Text
Using LSP package:
Zed
Add to settings.json:
Troubleshooting
Verify cook is in your PATH:
Check server logs:
Enable debug logging: