Skip to content

Commit 2fd4d03

Browse files
committed
fix(ci): stabilize luajit version and format symbols
1 parent 62a99c2 commit 2fd4d03

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: luajit
5656
uses: leafo/gh-actions-lua@v10
5757
with:
58-
luaVersion: "luajit-2.1.0-beta3"
58+
luaVersion: "luajit-2.1"
5959

6060
- name: luarocks
6161
uses: leafo/gh-actions-luarocks@v4

lua/lspsaga/symbol/head.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ function symbol:buf_watcher(bufnr, group)
7171
end
7272

7373
function symbol:do_request(buf, client_id)
74-
local params = { textDocument = {
75-
uri = vim.uri_from_bufnr(buf),
76-
} }
74+
local params = {
75+
textDocument = {
76+
uri = vim.uri_from_bufnr(buf),
77+
},
78+
}
7779

7880
local client = vim.lsp.get_client_by_id(client_id)
7981
if not client then
@@ -184,7 +186,10 @@ function symbol:register_module()
184186
end
185187
self:buf_watcher(args.buf, group)
186188

187-
if config.implement.enable and util.client_supports_method(client, 'textDocument/implementation') then
189+
if
190+
config.implement.enable
191+
and util.client_supports_method(client, 'textDocument/implementation')
192+
then
188193
require('lspsaga.implement').start()
189194
end
190195
end,

lua/lspsaga/symbol/init.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ function symbol:do_request(buf, client_id)
9191
return
9292
end
9393

94-
local params = { textDocument = {
95-
uri = vim.uri_from_bufnr(buf),
96-
} }
94+
local params = {
95+
textDocument = {
96+
uri = vim.uri_from_bufnr(buf),
97+
},
98+
}
9799

98100
local client = vim.lsp.get_client_by_id(client_id)
99101
if not client then
@@ -200,7 +202,10 @@ function symbol:register_module()
200202
require('lspsaga.symbol.winbar').init_winbar(args.buf)
201203
end
202204

203-
if config.implement.enable and util.client_supports_method(client, 'textDocument/implementation') then
205+
if
206+
config.implement.enable
207+
and util.client_supports_method(client, 'textDocument/implementation')
208+
then
204209
require('lspsaga.implement').start()
205210
end
206211
end,

0 commit comments

Comments
 (0)