chore(fmt): Finally let's use stylua

Hoping it's as good as go-fmt
This commit is contained in:
hedy
2023-11-17 09:28:33 +08:00
parent d400d4f025
commit dc55a8b942
22 changed files with 247 additions and 307 deletions

View File

@@ -1,6 +1,6 @@
local config = require 'outline.config'
local lsp_utils = require 'outline.utils.lsp_utils'
local jsx = require 'outline.utils.jsx'
local config = require('outline.config')
local jsx = require('outline.utils.jsx')
local lsp_utils = require('outline.utils.lsp_utils')
local M = {
name = 'lsp',
@@ -10,9 +10,9 @@ local M = {
function M.get_status()
if not M.client then
return "No clients"
return 'No clients'
end
return "client: "..M.client.name
return 'client: ' .. M.client.name
end
local function get_params()
@@ -83,15 +83,10 @@ end
---@param on_symbols function
function M.request_symbols(on_symbols, opts)
vim.lsp.buf_request_all(
0,
'textDocument/documentSymbol',
get_params(),
function (response)
response = M.postprocess_symbols(response)
on_symbols(response, opts)
end
)
vim.lsp.buf_request_all(0, 'textDocument/documentSymbol', get_params(), function(response)
response = M.postprocess_symbols(response)
on_symbols(response, opts)
end)
end
return M