1 2 3 4 5
return function (lsp, params) local doc = params.textDocument lsp:saveText(doc.uri, doc.version, doc.text) return true end