Set up Lua development for Macs with Homebrew
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled

This commit is contained in:
w0rp
2025-03-28 16:20:18 +00:00
parent dd23b92ee9
commit add538213f
3 changed files with 5 additions and 2 deletions

View File

@@ -7,7 +7,8 @@
"test" "test"
], ],
"workspace.library": [ "workspace.library": [
"/usr/share/nvim/runtime/lua" "/usr/share/nvim/runtime/lua",
"/opt/homebrew/share/nvim/runtime/lua"
], ],
"runtime.pathStrict": true, "runtime.pathStrict": true,
"runtime.path": [ "runtime.path": [

View File

@@ -67,7 +67,7 @@ module.send = function(buffer, loclist)
local local_cfg = { priority = sign_priority } local local_cfg = { priority = sign_priority }
local global_cfg = vim.diagnostic.config().signs local global_cfg = vim.diagnostic.config().signs
if type(global_cfg) == "boolean" then if global_cfg == false or global_cfg == true or global_cfg == nil then
signs = local_cfg signs = local_cfg
elseif type(global_cfg) == "table" then elseif type(global_cfg) == "table" then
signs = vim.tbl_extend("force", global_cfg, local_cfg) signs = vim.tbl_extend("force", global_cfg, local_cfg)

View File

@@ -150,12 +150,14 @@ module.send_message = function(args)
success, request_id = client.request( success, request_id = client.request(
args.method, args.method,
args.params, args.params,
---@diagnostic disable-next-line: param-type-mismatch
function(_, result, _, _) function(_, result, _, _)
vim.fn["ale#lsp#HandleResponse"](client.name, { vim.fn["ale#lsp#HandleResponse"](client.name, {
id = request_id, id = request_id,
result = result, result = result,
}) })
end, end,
---@diagnostic disable-next-line: param-type-mismatch
-1 -1
) )