style: code format use lua_ls

This commit is contained in:
JuanZoran
2023-03-24 00:56:36 +08:00
parent 9f5a81249c
commit 82fa2a008a
22 changed files with 227 additions and 247 deletions

View File

@@ -1,4 +1,4 @@
local Trans = require('Trans')
local Trans = require 'Trans'
local util = Trans.util
local function init_opts(opts)
@@ -19,7 +19,7 @@ local function do_query(data, backend)
local method = backend.method
local formatter = backend.formatter
local query = backend.get_query(data)
local header = type(backend.header) == "function" and backend.header(data) or backend.header
local header = type(backend.header) == 'function' and backend.header(data) or backend.header
local function handle(output)
local status, body = pcall(vim.json.decode, output.body)