一些Lua写的Vim插件收集贴

你用的哪个客户端 eglot lsp-mode lsp-bridge?

lsp-bridge,比如说我想配置github action,有了schema之后该怎么写配置呢?

写在 server json 文件的 settings 里

json 的写法: LSP-json/language-server at master · sublimelsp/LSP-json (github.com)

yaml 的写法: redhat-developer/yaml-language-server: Language Server for YAML Files (github.com)

比如这是 json 的:

{
  "name": "vscode-json-language-server",
  "languageId": "json",
  "command": [
    "vscode-json-language-server",
    "--stdio"
  ],
  "settings": {
    "json": {
      "schemas": [
        {
          "url": "https://json.schemastore.org/package.json",
          "fileMatch": [
            "package.json"
          ]
        },

      ]
    }
  }
}

yaml-language-server 好像默认支持一些 schema,我写 github action 是有补全的

哦哦,好的,我去试一下。