A Language Server Protocol implementation for Forth, bringing modern IDE features to Forth development.
- Hover - View documentation for built-in words and user-defined functions
- Completion - Auto-complete for built-in words and your definitions
- Go to Definition - Jump to where words are defined
- Find References - Find all usages of a word
- Rename - Rename symbols across your workspace
- Document Symbols - Outline view of word definitions in current file
- Workspace Symbols - Search for definitions across all files
- Signature Help - View parameter information while typing
- Diagnostics - Real-time error detection for undefined words
- Formatting - Auto-format your code with configurable options
cargo install forth-lspThen configure your editor to use forth-lsp. Works with any LSP-compatible editor (VS Code, Neovim, Helix, Emacs, etc.).
# Run tests
cargo test --workspace
# or
cargo t