diff --git a/.config/nvim/lua/plugins/configs/lsp.lua b/.config/nvim/lua/plugins/configs/lsp.lua index 2b65e7a6..ce017747 100755 --- a/.config/nvim/lua/plugins/configs/lsp.lua +++ b/.config/nvim/lua/plugins/configs/lsp.lua @@ -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 = {