# 凹语言 Sublime Text 支持 **Repository Path**: wa-lang/sublimetext-wa ## Basic Information - **Project Name**: 凹语言 Sublime Text 支持 - **Description**: No description available - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-24 - **Last Updated**: 2024-04-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 凹语言 Sublime Text 支持 尚在开发阶段,欢迎加入共建。 ## 语法高亮 在控制台通过 `sublime.packages_path()` 命令查看包目录,将 `Wa.sublime-syntax` 文件复制到 `User` 子目录中。然后重启 Sublime Text 打开凹语言代码,效果如下: ![](preview.jpg) ## LSP 服务 首先安装 LSP 插件,然后配置如下: ```json // Settings in here override those in "LSP/LSP.sublime-settings" { // General settings "show_diagnostics_panel_on_save": 0, // Language server configurations "clients": { "wa-lang": { // enable this configuration "enabled": true, // the startup command -- what you would type in a terminal "command": ["wa", "lsp"], // the selector that selects which type of buffers this language server attaches to "selector": "source.wa" } } } ``` 注:`wa lsp` 命令尚在开发阶段,欢迎加入共建。 ## 参考资料 - https://www.sublimetext.com/docs/syntax.html - https://packagecontrol.io/packages/LSP