mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
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
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:
@@ -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": [
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user