summaryrefslogtreecommitdiff
path: root/src/method/initialize.lua
blob: 15b6ca6ee138b2d4d8f14cabcada2dfbd9668ea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
return function (lsp, data)
    lsp._inited = true
    return {
        capabilities = {
            -- 支持“转到定义”
            definitionProvider = true,
            -- 文本同步方式
            textDocumentSync = {
                -- 打开关闭文本时通知
                openClose = true,
                -- 文本改变时完全通知 TODO 支持差量更新(2)
                change = 1,
            }
        }
    }
end