fix(notify): Use events api
This commit is contained in:
parent
903d9ec94f
commit
889a576aac
@ -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
|
||||
|
||||
@ -50,14 +49,13 @@ lsp_installer.on_server_ready(function(server)
|
||||
--
|
||||
-- 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 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 },
|
||||
|
Loading…
Reference in New Issue
Block a user