summaryrefslogtreecommitdiff
path: root/server/src/method/workspace/didChangeConfiguration.lua
blob: 58fc0079bdeb63bf466d72f7032b0a4a9cc86245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local rpc = require 'rpc'

return function (lsp)
    -- 请求配置
    rpc:request('workspace/configuration', {
        items = {
            {
                section = 'Lua',
            },
        },
    }, function (configs)
        lsp:onUpdateConfig(configs[1])
    end)
end