Hawa Code already supports integrated LSPServer capabilities by default. You only need to install the LSPserver for your development language to use it. Using LSPServer can improve Hawa Code’s code exploration speed while also saving token usage.
Hawa Code supports the following LSPServer capabilities:
- goToDefinition: Find the location of symbol definitions
- findReferences: Find all references to symbols
- hover: Get hover information for symbols (documentation, type information)
- documentSymbol: Get all symbols within a document (functions, classes, variables)
- workspaceSymbol: Search for symbols across the entire workspace
- goToImplementation: Find implementations of interfaces or abstract methods
- prepareCallHierarchy: Get call hierarchy items at the specified location (functions/methods)
- incomingCalls: Find all functions/methods that call the function at the specified location
- outgoingCalls: Find other functions/methods called by the function at the specified location
Supported LSPServer List
| Language | LSP | Install |
|---|---|---|
| Go | gopls | go install golang.org/x/tools/gopls@latest |
| TypeScript/JavaScript | vtsls | npm install -g @vtsls/language-server |
| Python | pyright | npm install -g pyright |
| Java | jdtls | npm install -g @redhat-developer/vscode-java |
| C/C++ | clangd | npm install -g clangd |
| C# | OmniSharp | npm install -g omnisharp |
| PHP | Intelephense | npm install -g intelephense |
| Kotlin | kotlin-language-server | npm install -g kotlin-language-server |
| Rust | rust-analyzer | rustup component add rust-analyzer |
| Ruby | Solargraph | gem install solargraph |
| HTML/CSS | vscode-langservers | npm install -g vscode-langservers-extracted |