A LSP (Language Server Protocol) server for OpenSCAD.
inspired by dzhu/openscad-language-server
Tested with VSCode on Mac and Windows. [vscode extension]
Tested with lsp-mode on Emacs on Linux by @Lenbok.
openscad-LSP is written in Rust, in order to use it, you need to install Rust toolchain.
{.sh}
cargo install openscad-lsp
{.sh}
cd openscad-LSP
cargo build --release
The server communicates over TCP socket (127.0.0.1:3245).
``` USAGE: openscad-lsp [OPTIONS]
OPTIONS:
--builtin
To change the config during running, you can send notification workspace/didChangeConfiguration
js
// example
{
"settings": {
"openscad": {
"search_paths": "/libs",
"fmt_exe": "/usr/bin/clang-format",
"fmt_style": "file",
"default_param": true
}
}
}
If you work with vscode, you can install the extension directly from the marketplace