diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2024-08-02 13:00:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 13:00:11 +0200 |
commit | 0a0962a2e8d9ffa5f03e492fa293e964650a965e (patch) | |
tree | e4124b0a05282955c9970a8cbe179fa30db98022 /scripts/gen_lsp.lua | |
parent | 5de2ae2bced9732904801b37eb46c4b8e6484b81 (diff) | |
download | rneovim-0a0962a2e8d9ffa5f03e492fa293e964650a965e.tar.gz rneovim-0a0962a2e8d9ffa5f03e492fa293e964650a965e.tar.bz2 rneovim-0a0962a2e8d9ffa5f03e492fa293e964650a965e.zip |
refactor(lsp): remove freeze() from gen_lsp (#29955)
To match the change in https://github.com/neovim/neovim/pull/29283
Diffstat (limited to 'scripts/gen_lsp.lua')
-rw-r--r-- | scripts/gen_lsp.lua | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/scripts/gen_lsp.lua b/scripts/gen_lsp.lua index 1706b39864..8bd771d97b 100644 --- a/scripts/gen_lsp.lua +++ b/scripts/gen_lsp.lua @@ -109,26 +109,8 @@ local function gen_methods(protocol) end end output[#output + 1] = '}' - output = vim.list_extend( - output, - vim.split( - [[ -local function freeze(t) - return setmetatable({}, { - __index = t, - __newindex = function() - error('cannot modify immutable table') - end, - }) -end -protocol.Methods = freeze(protocol.Methods) - -return protocol -]], - '\n', - { trimempty = true } - ) - ) + output[#output + 1] = '' + output[#output + 1] = 'return protocol' local fname = './runtime/lua/vim/lsp/protocol.lua' local bufnr = vim.fn.bufadd(fname) |