From c3af4d4516b176beb31ac57133cf4a6f56109ab7 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 12 Oct 2022 14:49:28 -0500 Subject: [PATCH] fix(nvim): properly use notify in on_attach --- .../primary/config/lua/plugins/configs/lsp.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua index c7016a0e..d624f226 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua @@ -9,13 +9,9 @@ mason_lspconfig.setup({ local function on_attach(client, bufnr) -- Set autocommands conditional on server_capabilities - async.run(function() - vim.notify - .async("Attached server " .. client.name, "info", { - title = "Lsp Attach", - }).events - .close() - end) + vim.notify("Attached server " .. client.name, "info", { + title = "LSP", + }) end local lsp_capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities())