fix(notify): Use events api

This commit is contained in:
Price Hiller 2022-02-21 14:25:45 -06:00
parent 903d9ec94f
commit 889a576aac

View File

@ -16,8 +16,7 @@ for _, name in pairs(required_servers) do
async.run(function()
vim.notify.async("Installing Language Server " .. name, "info", {
title = "Lsp Installer",
}
)
})
end)
server:install()
end
@ -28,7 +27,7 @@ local function on_attach(client, bufnr)
async.run(function()
vim.notify.async("Attached server " .. client.name, "info", {
title = "Lsp Attach",
}).close()
}).events.close()
end)
end
@ -49,15 +48,14 @@ lsp_installer.on_server_ready(function(server)
-- https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
--
-- locate it with `find ~/ -name `
local extension_path = os.getenv("HOME") .. "/.vscode/extensions/vadimcn.vscode-lldb-1.6.10/"
local codelldb_path = extension_path .. 'adapter/codelldb'
local liblldb_path = extension_path .. 'lldb/lib/liblldb.dylib'
local extension_path = os.getenv("HOME") .. "/.vscode/extensions/vadimcn.vscode-lldb-1.6.10/"
local codelldb_path = extension_path .. "adapter/codelldb"
local liblldb_path = extension_path .. "lldb/lib/liblldb.dylib"
local rustopts = {
server = vim.tbl_deep_extend("force", server:get_default_options(), opts, {}),
dap = {
adapter = require('rust-tools.dap').get_codelldb_adapter(
codelldb_path, liblldb_path)
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path),
},
tools = {
hover_actions = { auto_focus = true },
@ -72,7 +70,7 @@ lsp_installer.on_server_ready(function(server)
opts.settings = {
ansible = {
ansible = {
useFullyQualifiedCollectionNames = true,
useFullyQualifiedCollectionNames = true,
path = "ansible",
},
ansibleLint = {