Skip to content

Commit add5382

Browse files
committed
Set up Lua development for Macs with Homebrew
1 parent dd23b92 commit add5382

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.luarc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"test"
88
],
99
"workspace.library": [
10-
"/usr/share/nvim/runtime/lua"
10+
"/usr/share/nvim/runtime/lua",
11+
"/opt/homebrew/share/nvim/runtime/lua"
1112
],
1213
"runtime.pathStrict": true,
1314
"runtime.path": [

lua/ale/diagnostics.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.send = function(buffer, loclist)
6767
local local_cfg = { priority = sign_priority }
6868
local global_cfg = vim.diagnostic.config().signs
6969

70-
if type(global_cfg) == "boolean" then
70+
if global_cfg == false or global_cfg == true or global_cfg == nil then
7171
signs = local_cfg
7272
elseif type(global_cfg) == "table" then
7373
signs = vim.tbl_extend("force", global_cfg, local_cfg)

lua/ale/lsp.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,14 @@ module.send_message = function(args)
150150
success, request_id = client.request(
151151
args.method,
152152
args.params,
153+
---@diagnostic disable-next-line: param-type-mismatch
153154
function(_, result, _, _)
154155
vim.fn["ale#lsp#HandleResponse"](client.name, {
155156
id = request_id,
156157
result = result,
157158
})
158159
end,
160+
---@diagnostic disable-next-line: param-type-mismatch
159161
-1
160162
)
161163

0 commit comments

Comments
 (0)