pawnlsp

module
v0.34.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: MIT

README

pawnlsp

An LSP server for SA-MP/open.mp Pawn. It consumes shared PawnKit libraries for project discovery, analysis, API metadata, diagnostics, and fixes.

Install

go install github.com/pawnkit/pawnlsp/cmd/pawnlsp@latest

Use

Configure your editor's Pawn language client to start pawnlsp over standard input and output.

Check the installed version with pawnlsp --version.

The server provides:

  • diagnostics for open documents and indexed project files
  • cancellable progress for slow diagnostic pulls
  • safe fixes, rule documentation, and local pawnlint suppressions
  • documented completion, hover, signature help, and semantic highlighting
  • document and workspace symbols, definitions, hover, references, rename, and call hierarchy
  • document highlights, folding, and structural selection
  • whole-document, range, and format-on-type formatting through pawnfmt
  • parameter-name inlay hints
  • Pawn project and pawnlint.toml discovery

Completion follows project include roots and handles preprocessor directives. Symbol and API documentation is loaded when an item is selected, which keeps large completion lists smaller. Broad results are bounded; typing more of the name asks the server for a narrower list.

Diagnostic codes link to their pawnlint rule or the pawn-analysis troubleshooting reference when the client supports LSP code descriptions. Diagnostics also link to related declarations and source locations when that context is available.

The editor must send file:// document URIs.

Contributing

Editor bug reports and focused protocol fixes are welcome. See CONTRIBUTING.md.

Directories

Path Synopsis
cmd
pawnlsp command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL