summaryrefslogtreecommitdiff
path: root/src/method/initialize.lua
blob: 31c628de9d45ed86fe41eac46be432cf7883a62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
return function (lsp, data)
    lsp._inited = true

    return {
        capabilities = {
            -- 支持“转到定义”
            definitionProvider = true,
            -- 文本同步方式
            textDocumentSync = {
                -- 打开关闭文本时通知
                openClose = true,
                -- 文本改变时增量通知
                change = 2,
            }
        }
    }
end